Commit a4e019b 1 parent 4bf8f83 commit a4e019b Copy full SHA for a4e019b
File tree 17 files changed +83
-18
lines changed
versioning-checker/src/main/java/org/apache/aries/versioning/utils
src/main/java/org/apache/aries/versioning/mojo
17 files changed +83
-18
lines changed Original file line number Diff line number Diff line change 18
18
- parent/**
19
19
- testsupport/**
20
20
- proxy/**
21
+ - versioning/**
21
22
- util/**
22
23
- quiesce/**
23
24
- blueprint/**
57
58
- name : Build proxy
58
59
shell : bash
59
60
run : mvn -U -e -B -ntp clean install -f proxy
61
+ - name : Build versioning
62
+ shell : bash
63
+ run : mvn -U -e -B -ntp clean install -f versioning
60
64
- name : Build util
61
65
shell : bash
62
66
run : mvn -U -e -B -ntp clean install -f util
Original file line number Diff line number Diff line change 17
17
paths :
18
18
- parent/**
19
19
- testsupport/**
20
+ - versioning/**
20
21
- util/**
21
22
- quiesce/**
22
23
- .github/workflows/quiesce.yml
51
52
- name : Build testsupport
52
53
shell : bash
53
54
run : mvn -U -e -B -ntp clean install -f testsupport
55
+ - name : Build versioning
56
+ shell : bash
57
+ run : mvn -U -e -B -ntp clean install -f versioning
54
58
- name : Build util
55
59
shell : bash
56
60
run : mvn -U -e -B -ntp clean install -f util
Original file line number Diff line number Diff line change 16
16
pull_request :
17
17
paths :
18
18
- parent/**
19
+ - versioning/**
19
20
- util/**
20
21
- .github/workflows/util.yml
21
22
push :
43
44
with :
44
45
distribution : ' temurin'
45
46
java-version : ${{ matrix.java }}
47
+ - name : Build parent
48
+ shell : bash
49
+ run : mvn -U -e -B -ntp clean install -f parent
50
+ - name : Build versioning
51
+ shell : bash
52
+ run : mvn -U -e -B -ntp clean install -f versioning
46
53
- name : Build util
47
54
shell : bash
48
55
run : mvn -U -e -B -ntp clean install -f util
Original file line number Diff line number Diff line change 17
17
paths :
18
18
- parent/**
19
19
- testsupport/**
20
+ - versioning/**
20
21
- util/**
21
22
- web/**
22
23
- .github/workflows/web.yml
51
52
- name : Build testsupport
52
53
shell : bash
53
54
run : mvn -U -e -B -ntp clean install -f testsupport
55
+ - name : Build versioning
56
+ shell : bash
57
+ run : mvn -U -e -B -ntp clean install -f versioning
54
58
- name : Build util
55
59
shell : bash
56
60
run : mvn -U -e -B -ntp clean install -f util
Original file line number Diff line number Diff line change 193
193
<maven-javadoc-plugin .version>3.11.2</maven-javadoc-plugin .version>
194
194
<maven-pmd-plugin .version>3.26.0</maven-pmd-plugin .version>
195
195
<maven-paxexam-plugin .version>1.2.4</maven-paxexam-plugin .version>
196
- <org .apache.aries.versioning.plugin.version>0.3.0 </org .apache.aries.versioning.plugin.version>
196
+ <org .apache.aries.versioning.plugin.version>0.3.1 </org .apache.aries.versioning.plugin.version>
197
197
<animal-sniffer-enforcer-rule .version>1.6</animal-sniffer-enforcer-rule .version>
198
198
<depgraph-maven-plugin .version>4.0.3</depgraph-maven-plugin .version>
199
199
446
446
<goals >
447
447
<goal >version-check</goal >
448
448
</goals >
449
- <configuration >
450
- <skip >true</skip >
451
- </configuration >
452
449
</execution >
453
450
</executions >
454
451
</plugin >
Original file line number Diff line number Diff line change 49
49
org.apache.aries.quiesce.manager;
50
50
org.apache.aries.quiesce.participant;
51
51
</aries .osgi.export.pkg>
52
+ <org .apache.aries.versioning.plugin.version>0.3.2-SNAPSHOT</org .apache.aries.versioning.plugin.version>
52
53
<lastReleaseVersion >1.0.0</lastReleaseVersion >
53
54
</properties >
54
55
65
66
<plugin >
66
67
<groupId >org.apache.aries.versioning</groupId >
67
68
<artifactId >org.apache.aries.versioning.plugin</artifactId >
68
- <configuration ><skip >true</skip ></configuration >
69
69
</plugin >
70
70
</plugins >
71
71
</build >
Original file line number Diff line number Diff line change 40
40
</scm >
41
41
42
42
<properties >
43
+ <aries .skip.version.check>true</aries .skip.version.check>
43
44
<depends-maven-plugin .version>1.5.0</depends-maven-plugin .version>
44
45
<org .apache.aries.quiesce.api.version>1.0.1-SNAPSHOT</org .apache.aries.quiesce.api.version>
45
46
<org .apache.aries.quiesce.manager.version>1.0.1-SNAPSHOT</org .apache.aries.quiesce.manager.version>
Original file line number Diff line number Diff line change 54
54
<aries .osgi.export.service>
55
55
org.apache.aries.quiesce.manager.QuiesceManager
56
56
</aries .osgi.export.service>
57
+ <org .apache.aries.versioning.plugin.version>0.3.2-SNAPSHOT</org .apache.aries.versioning.plugin.version>
57
58
<lastReleaseVersion >1.0.0</lastReleaseVersion >
58
59
59
60
<org .apache.aries.quiesce.api.version>1.0.1-SNAPSHOT</org .apache.aries.quiesce.api.version>
98
99
<plugin >
99
100
<groupId >org.apache.aries.versioning</groupId >
100
101
<artifactId >org.apache.aries.versioning.plugin</artifactId >
101
- <configuration ><skip >true</skip ></configuration >
102
102
</plugin >
103
103
</plugins >
104
104
</build >
Original file line number Diff line number Diff line change 63
63
org.apache.aries.util.filesystem.impl,
64
64
org.apache.aries.util.tracker.hook
65
65
</aries .osgi.private.pkg>
66
- <lastReleaseVersion >1.1.0</lastReleaseVersion >
66
+ <lastReleaseVersion >1.1.3</lastReleaseVersion >
67
+ <org .apache.aries.versioning.plugin.version>0.3.2-SNAPSHOT</org .apache.aries.versioning.plugin.version>
67
68
68
69
<maven-javadoc-plugin .version>3.11.2</maven-javadoc-plugin .version>
69
70
<org .apache.aries.testsupport.unit.version>1.0.0</org .apache.aries.testsupport.unit.version>
119
120
</execution >
120
121
</executions >
121
122
</plugin >
122
- <plugin >
123
- <groupId >org.apache.aries.versioning</groupId >
124
- <artifactId >org.apache.aries.versioning.plugin</artifactId >
125
- <configuration ><skip >true</skip ></configuration >
126
- </plugin >
127
123
</plugins >
128
124
</build >
129
125
</project >
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ package org .apache .aries .versioning .utils ;
20
+
21
+ import org .objectweb .asm .Opcodes ;
22
+
23
+ class AsmApiVersion {
24
+ static final int apiVersion = Opcodes .ASM9 ;
25
+ }
Original file line number Diff line number Diff line change @@ -35,14 +35,13 @@ public class SemanticVersioningClassVisitor extends ClassVisitor {
35
35
private SerialVersionClassVisitor cv = null ;
36
36
37
37
public SemanticVersioningClassVisitor (URLClassLoader newJarLoader , SerialVersionClassVisitor cv ) {
38
- super (SemanticVersioningUtils . ASM4 );
38
+ super (AsmApiVersion . apiVersion );
39
39
this .loader = newJarLoader ;
40
40
this .cv = cv ;
41
41
}
42
42
43
43
public SemanticVersioningClassVisitor (URLClassLoader newJarLoader ) {
44
- super (SemanticVersioningUtils .ASM4 );
45
- this .loader = newJarLoader ;
44
+ this (newJarLoader , null );
46
45
}
47
46
48
47
public ClassDeclaration getClassDeclaration () {
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ public class SemanticVersioningUtils {
45
45
public static final String SERIALIZABLE_CLASS_IDENTIFIER = "java/io/Serializable" ;
46
46
public static final String SERIAL_VERSION_UTD = "serialVersionUID" ;
47
47
public static final String ENUM_CLASS = "java/lang/Enum" ;
48
+ @ Deprecated
48
49
public static final int ASM4 = Opcodes .ASM4 ;
49
50
50
51
public static boolean isLessAccessible (GenericDeclaration before , GenericDeclaration after ) {
Original file line number Diff line number Diff line change 21
21
import java .io .IOException ;
22
22
23
23
import org .objectweb .asm .ClassVisitor ;
24
- import org .objectweb .asm .Opcodes ;
25
24
import org .objectweb .asm .commons .SerialVersionUIDAdder ;
26
25
27
26
public class SerialVersionClassVisitor extends SerialVersionUIDAdder {
28
27
29
28
public SerialVersionClassVisitor (ClassVisitor cv ) {
30
- super (Opcodes .ASM5 , cv );
31
-
29
+ super (AsmApiVersion .apiVersion , cv );
32
30
}
33
31
34
32
public long getComputeSerialVersionUID () {
Original file line number Diff line number Diff line change 41
41
</scm >
42
42
43
43
<properties >
44
+ <asm .version>9.7.1</asm .version>
44
45
<javax .inject.version>1</javax .inject.version>
45
46
<maven-artifact-resolver .version>1.0</maven-artifact-resolver .version>
46
47
<maven-common-artifact-filters .version>3.4.0</maven-common-artifact-filters .version>
113
114
<groupId >org.apache.maven.shared</groupId >
114
115
<artifactId >maven-artifact-resolver</artifactId >
115
116
<version >${maven-artifact-resolver.version} </version >
117
+ <scope >provided</scope >
116
118
</dependency >
117
119
<dependency >
118
120
<groupId >org.apache.maven.shared</groupId >
119
121
<artifactId >maven-common-artifact-filters</artifactId >
120
122
<version >${maven-common-artifact-filters.version} </version >
123
+ <scope >provided</scope >
124
+ </dependency >
125
+
126
+ <dependency >
127
+ <groupId >org.ow2.asm</groupId >
128
+ <artifactId >asm</artifactId >
129
+ <version >${asm.version} </version >
130
+ </dependency >
131
+ <dependency >
132
+ <groupId >org.ow2.asm</groupId >
133
+ <artifactId >asm-commons</artifactId >
134
+ <version >${asm.version} </version >
135
+ </dependency >
136
+ <dependency >
137
+ <groupId >org.ow2.asm</groupId >
138
+ <artifactId >asm-tree</artifactId >
139
+ <version >${asm.version} </version >
140
+ </dependency >
141
+ <dependency >
142
+ <groupId >org.ow2.asm</groupId >
143
+ <artifactId >asm-analysis</artifactId >
144
+ <version >${asm.version} </version >
121
145
</dependency >
122
146
</dependencies >
123
147
Original file line number Diff line number Diff line change @@ -92,9 +92,11 @@ public class VersionCheckerMojo extends AbstractMojo {
92
92
93
93
public void execute () throws MojoExecutionException {
94
94
if (skip ) {
95
+ getLog ().info ("Version check is skipped" );
95
96
return ;
96
97
}
97
98
if ("pom" .equals (project .getPackaging ())) {
99
+ getLog ().info ("Skipping version check for pom" );
98
100
return ;
99
101
}
100
102
if (newFile == null ) {
Original file line number Diff line number Diff line change 41
41
</scm >
42
42
43
43
<properties >
44
+ <aries .skip.version.check>true</aries .skip.version.check>
45
+
44
46
<asm .version>9.7.1</asm .version>
45
47
<depends-maven-plugin .version>1.5.0</depends-maven-plugin .version>
46
48
<org .apache.aries.testsupport.unit.version>2.0.0-SNAPSHOT</org .apache.aries.testsupport.unit.version>
Original file line number Diff line number Diff line change 55
55
</aries .osgi.import>
56
56
<aries .osgi.activator>org.apache.aries.web.converter.impl.Activator</aries .osgi.activator>
57
57
<lastReleaseVersion >1.0.0</lastReleaseVersion >
58
+ <org .apache.aries.versioning.plugin.version>0.3.2-SNAPSHOT</org .apache.aries.versioning.plugin.version>
58
59
59
60
<asm .version>9.7.1</asm .version>
60
61
</properties >
You can’t perform that action at this time.
0 commit comments