Skip to content

Commit 80c7495

Browse files
committed
Upgrade to Java 11 and parent version 2.0
1 parent 4f990ca commit 80c7495

File tree

4 files changed

+30
-76
lines changed

4 files changed

+30
-76
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: ubuntu-latest
2727
strategy:
2828
matrix:
29-
java: [8, 11, 17, 21]
29+
java: [11, 17, 21]
3030
fail-fast: false
3131
steps:
3232
- uses: actions/checkout@v5
@@ -43,18 +43,18 @@ jobs:
4343
runs-on: ubuntu-latest
4444
steps:
4545
- uses: actions/checkout@v5
46-
- name: Set up JDK 8
46+
- name: Set up JDK 11
4747
uses: actions/setup-java@v5
4848
with:
49-
java-version: '8'
49+
java-version: '11'
5050
distribution: 'temurin'
5151
cache: 'maven'
5252
- name: Build with Maven
5353
run: mvn compile --file pom.xml -B --no-transfer-progress
5454
- name: Test with Maven
5555
run: mvn test --file pom.xml -B --no-transfer-progress -Duser.timezone="Europe/Amsterdam" -Pmin-versions
5656

57-
native-module:
57+
site:
5858
runs-on: ubuntu-latest
5959
steps:
6060
- uses: actions/checkout@v5
@@ -65,17 +65,4 @@ jobs:
6565
distribution: 'temurin'
6666
cache: 'maven'
6767
- name: Build with Maven
68-
run: mvn package --file pom.xml -B --no-transfer-progress -Duser.timezone="Europe/Amsterdam" -Pnative-module
69-
70-
site:
71-
runs-on: ubuntu-latest
72-
steps:
73-
- uses: actions/checkout@v5
74-
- name: Set up JDK 8
75-
uses: actions/setup-java@v5
76-
with:
77-
java-version: '8'
78-
distribution: 'temurin'
79-
cache: 'maven'
80-
- name: Build with Maven
81-
run: mvn site --file pom.xml -B --no-transfer-progress
68+
run: mvn package site --file pom.xml -B --no-transfer-progress -DskipTests

.github/workflows/release-site.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- uses: actions/checkout@v5
29-
- name: Set up JDK 8
29+
- name: Set up JDK 11
3030
uses: actions/setup-java@v5
3131
with:
32-
java-version: '8'
32+
java-version: '11'
3333
distribution: 'temurin'
3434
cache: 'maven'
3535
- name: Build site
3636
run: |
37-
mvn site --file pom.xml -B --no-transfer-progress
37+
mvn package site --file pom.xml -B --no-transfer-progress -DskipTests
3838
for i in `grep '<module>.*</module>' pom.xml`; do
3939
module=`echo $i | sed 's~<module>\(.*\)</module>~\1~g'`
4040
echo "Moving site for module $module to target/site"

pom.xml

Lines changed: 19 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
<parent>
2323
<groupId>com.github.robtimus</groupId>
2424
<artifactId>robtimus-parent</artifactId>
25-
<version>1.18</version>
25+
<version>2.0</version>
2626
<relativePath />
2727
</parent>
2828

2929
<artifactId>obfuscation-commons-lang</artifactId>
30-
<version>1.1-SNAPSHOT</version>
30+
<version>2.0-SNAPSHOT</version>
3131
<packaging>jar</packaging>
3232

3333
<name>obfuscation-commons-lang</name>
@@ -62,6 +62,8 @@
6262
</issueManagement>
6363

6464
<properties>
65+
<version.java>11</version.java>
66+
6567
<version.commons-lang3>3.18.0</version.commons-lang3>
6668
<version.obfuscation-core>1.5</version.obfuscation-core>
6769
</properties>
@@ -123,6 +125,13 @@
123125
<plugin>
124126
<groupId>org.apache.maven.plugins</groupId>
125127
<artifactId>maven-dependency-plugin</artifactId>
128+
<executions>
129+
<execution>
130+
<goals>
131+
<goal>properties</goal>
132+
</goals>
133+
</execution>
134+
</executions>
126135
</plugin>
127136

128137
<plugin>
@@ -150,11 +159,6 @@
150159
<artifactId>maven-javadoc-plugin</artifactId>
151160
</plugin>
152161

153-
<plugin>
154-
<groupId>org.moditect</groupId>
155-
<artifactId>moditect-maven-plugin</artifactId>
156-
</plugin>
157-
158162
<plugin>
159163
<groupId>com.github.robtimus</groupId>
160164
<artifactId>build-helper-maven-plugin</artifactId>
@@ -198,6 +202,14 @@
198202
<plugin>
199203
<groupId>org.apache.maven.plugins</groupId>
200204
<artifactId>maven-surefire-plugin</artifactId>
205+
<configuration>
206+
<argLine>
207+
@{argLine}
208+
-javaagent:${org.mockito:mockito-core:jar}
209+
<!-- Allow JUnit to fully access the test classes -->
210+
--add-opens com.github.robtimus.obfuscation.commons.lang/com.github.robtimus.obfuscation.commons.lang3=ALL-UNNAMED
211+
</argLine>
212+
</configuration>
201213
</plugin>
202214

203215
<plugin>
@@ -245,53 +257,5 @@
245257
<version.commons-lang3>3.10</version.commons-lang3>
246258
</properties>
247259
</profile>
248-
249-
<profile>
250-
<id>native-module</id>
251-
<properties>
252-
<version.java>11</version.java>
253-
</properties>
254-
<build>
255-
<plugins>
256-
<plugin>
257-
<groupId>org.apache.maven.plugins</groupId>
258-
<artifactId>maven-surefire-plugin</artifactId>
259-
<configuration>
260-
<!-- Allow JUnit to fully access the test classes -->
261-
<argLine>
262-
@{argLine}
263-
--add-opens com.github.robtimus.obfuscation.commons.lang/com.github.robtimus.obfuscation.commons.lang3=ALL-UNNAMED
264-
</argLine>
265-
</configuration>
266-
</plugin>
267-
268-
<plugin>
269-
<groupId>org.moditect</groupId>
270-
<artifactId>moditect-maven-plugin</artifactId>
271-
<configuration>
272-
<skip>true</skip>
273-
</configuration>
274-
</plugin>
275-
276-
<plugin>
277-
<groupId>org.codehaus.mojo</groupId>
278-
<artifactId>build-helper-maven-plugin</artifactId>
279-
<executions>
280-
<execution>
281-
<phase>generate-sources</phase>
282-
<goals>
283-
<goal>add-source</goal>
284-
</goals>
285-
<configuration>
286-
<sources>
287-
<source>${project.basedir}/src/moditect</source>
288-
</sources>
289-
</configuration>
290-
</execution>
291-
</executions>
292-
</plugin>
293-
</plugins>
294-
</build>
295-
</profile>
296260
</profiles>
297261
</project>

src/moditect/module-info.java renamed to src/main/java/module-info.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
* limitations under the License.
1616
*/
1717

18+
/**
19+
* Provides functionality for obfuscating objects using Apache Commons Lang.
20+
*/
1821
module com.github.robtimus.obfuscation.commons.lang {
1922
requires transitive com.github.robtimus.obfuscation;
2023
requires transitive org.apache.commons.lang3;

0 commit comments

Comments
 (0)