Skip to content

Commit 9b06ac5

Browse files
authored
Merge pull request #8 from ref-humbold/module
Java Modules
2 parents cfcc02f + 79b8447 commit 9b06ac5

134 files changed

Lines changed: 597 additions & 918 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@
66

77
# These are Windows script files and should use crlf
88
*.bat text eol=crlf
9-

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- pull_request
66

77
jobs:
8-
gradle-build-and-test:
8+
build-and-test:
99
runs-on: ubuntu-latest
1010

1111
steps:
@@ -23,26 +23,3 @@ jobs:
2323

2424
- name: Test
2525
run: ./gradlew test
26-
27-
ant-build-and-test:
28-
runs-on: ubuntu-latest
29-
30-
steps:
31-
- uses: actions/checkout@v4
32-
33-
- uses: actions/setup-java@v4
34-
with:
35-
java-version: 17
36-
distribution: temurin
37-
38-
- name: Install JUnit5 for ANT
39-
run: ./ci/install_ant_junit5.sh
40-
41-
- name: Download Dependencies
42-
run: ant resolve
43-
44-
- name: Build
45-
run: ant build
46-
47-
- name: Test
48-
run: ant test

gradle.Jenkinsfile renamed to Jenkinsfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ pipeline {
102102
}
103103

104104
post {
105-
always {
106-
chuckNorris()
107-
}
108-
109105
cleanup {
110106
cleanWs()
111107
}

README.md

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,26 @@ Simple dependency injection container in Java
1818
+ Operating system \
1919
*Debian testing*
2020
+ [Java](https://www.oracle.com/technetwork/java/javase/overview/index.html) \
21-
*APT package `openjdk-17-jdk`, version 17 SE*
22-
+ [Gradle](https://gradle.org/) or [Apache ANT](http://ant.apache.org/) \
23-
*SDK-Man `gradle`, version 8.10* \
24-
*APT package `ant`, version 1.10.+*
21+
*APT package `openjdk-21-jdk`, version 21 SE*
22+
+ [Gradle](https://gradle.org/) \
23+
*SDK-Man `gradle`, version 8.10*
2524

2625
## Dependencies
2726

2827
> dependencies are automatically downloaded during build process
2928
29+
*none*
30+
31+
## Test dependencies
32+
33+
> dependencies are automatically downloaded during build process
34+
3035
+ JUnit 5.+
3136
+ AssertJ 3.+
3237

3338
-----
3439

35-
## How to build with Gradle?
40+
## How to build?
3641

3742
YADIC can be built with **Gradle**. All dependencies are downloaded during build, so
3843
make sure your Internet connection is working!
@@ -46,26 +51,6 @@ Possible Gradle tasks are:
4651
+ `gradle rebuild` - remove additional build files & resolve dependencies & compile source files &
4752
create jar & run all tests
4853

49-
## How to build with ANT?
50-
51-
YADIC can be built with **Apache ANT** using **Apache Ivy** to resolve all dependencies.
52-
Ivy itself and all dependencies are downloaded during build, so make sure your Internet
53-
connection is working!
54-
55-
Possible ANT targets are:
56-
57-
+ `ant`, `ant build` - resolve dependencies & compile source files & create jar & run all tests
58-
+ `ant resolve` - resolve dependencies
59-
+ `ant jar` - compile source files & create jar
60-
+ `ant test` - run all tests
61-
+ `ant docs` - generate Javadoc
62-
+ `ant clean` - remove additional build files
63-
+ `ant rebuild` - remove additional build files & resolve dependencies & compile source files &
64-
create jar & run all tests
65-
6654
## How to include it?
6755

68-
Simply add the *jar* file to your classpath from the directory:
69-
70-
+ `build/libs` for Gradle builds
71-
+ `antBuild/dist` for ANT builds
56+
Simply add the *jar* file to your module path from the `build/libs` directory:

ant.Jenkinsfile

Lines changed: 0 additions & 115 deletions
This file was deleted.

build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ ext {
99
specVersion = "${majorVersion}.${minorVersion}"
1010
jarVersion = "${majorVersion}.${minorVersion}.${dateVersion}"
1111
vendor = 'Rafał Kaleta'
12-
mainPackage = 'yadic'
12+
mainPackage = 'com.github.refhumbold.yadic'
1313
}
1414

1515
version = project.jarVersion
16-
archivesBaseName = project.mainPackage
1716

1817
repositories {
1918
mavenCentral()

build.xml

Lines changed: 0 additions & 120 deletions
This file was deleted.

ci/install_ant_junit5.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

gradle/wrapper/gradle-wrapper.jar

-17.4 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
44
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)