Commit c2f72e8 1 parent e11430d commit c2f72e8 Copy full SHA for c2f72e8
File tree 9 files changed +117
-109
lines changed
9 files changed +117
-109
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : publish
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ jobs :
8
+ publish :
9
+
10
+ runs-on : ubuntu-latest
11
+ permissions :
12
+ contents : read
13
+ packages : write
14
+
15
+ steps :
16
+ - name : Checkout
17
+ uses : actions/checkout@v4
18
+
19
+ - name : Set up JDK 11
20
+ uses : actions/setup-java@v4
21
+ with :
22
+ distribution : ' temurin'
23
+ java-version : 11
24
+
25
+ - name : Cache Maven Packages
26
+ uses : actions/cache@v4
27
+ with :
28
+ path : ~/.m2
29
+ key : ${{ runner.os }}-m2-${{ hashFiles('./**/pom.xml') }}
30
+ restore-keys : ${{ runner.os }}-m2
31
+
32
+ - name : Publish Packages
33
+ env :
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+ CONTAINER_REGISTRY_USERNAME : ${GITHUB_ACTOR}
36
+ CONTAINER_REGISTRY_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
+ SMARTCLIDE_CONTEXT_GITLAB_API_TOKEN : ${{ secrets.GITLAB_DEV_SMARTCLIDE_EU_API_TOKEN }}
38
+ run : mvn --file pom.xml --batch-mode deploy -Djib.to.auth.username="${CONTAINER_REGISTRY_USERNAME}" -Djib.to.auth.password="${CONTAINER_REGISTRY_TOKEN}"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
2
+
3
+ name : run-tests
4
+
5
+ on :
6
+ push
7
+
8
+ jobs :
9
+ test :
10
+
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - name : Checkout
15
+ uses : actions/checkout@v4
16
+
17
+ - name : Set up JDK 11
18
+ uses : actions/setup-java@v4
19
+ with :
20
+ distribution : ' temurin'
21
+ java-version : 11
22
+
23
+ - name : Cache Maven Packages
24
+ uses : actions/cache@v4
25
+ with :
26
+ path : ~/.m2
27
+ key : ${{ runner.os }}-m2-${{ hashFiles('./**/pom.xml') }}
28
+ restore-keys : ${{ runner.os }}-m2
29
+
30
+ - name : Run Tests
31
+ env :
32
+ SMARTCLIDE_CONTEXT_GITLAB_API_TOKEN : ${{ secrets.GITLAB_DEV_SMARTCLIDE_EU_API_TOKEN }}
33
+ run : mvn --file pom.xml --batch-mode test
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<groupId >org.eclipse.opensmartclide.context</groupId >
8
8
<artifactId >parent</artifactId >
9
- <version >2.0.0 </version >
9
+ <version >2.0.1-SNAPSHOT </version >
10
10
</parent >
11
11
12
12
<artifactId >context-core</artifactId >
77
77
<version >2.0.7</version >
78
78
</dependency >
79
79
80
- <!-- Apache CXF ! -->
80
+ <!-- Apache CXF -->
81
81
<dependency >
82
82
<groupId >org.apache.cxf</groupId >
83
83
<artifactId >cxf-rt-frontend-jaxws</artifactId >
100
100
<artifactId >cxf-rt-transports-http-hc</artifactId >
101
101
<version >${cxf.version} </version >
102
102
</dependency >
103
- <!-- end Apache CXF ! -->
103
+ <!-- end Apache CXF -->
104
104
105
- <!-- SimpleXMLFramework ! -->
105
+ <!-- SimpleXMLFramework -->
106
106
<dependency >
107
107
<groupId >org.simpleframework</groupId >
108
108
<artifactId >simple-xml</artifactId >
109
109
<version >2.7.1</version >
110
110
</dependency >
111
- <!-- End SimpleXMLFramework ! -->
111
+ <!-- End SimpleXMLFramework -->
112
112
113
- <!-- JSON Support ! -->
113
+ <!-- JSON Support -->
114
114
<dependency >
115
115
<groupId >com.google.code.gson</groupId >
116
116
<artifactId >gson</artifactId >
117
117
<version >2.11.0</version >
118
118
</dependency >
119
- <!-- END_JSON Support ! -->
119
+ <!-- END_JSON Support -->
120
120
121
121
<dependency >
122
122
<groupId >org.projectlombok</groupId >
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<groupId >org.eclipse.opensmartclide.context</groupId >
8
8
<artifactId >parent</artifactId >
9
- <version >2.0.0 </version >
9
+ <version >2.0.1-SNAPSHOT </version >
10
10
</parent >
11
11
12
12
<artifactId >context-extraction</artifactId >
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<groupId >org.eclipse.opensmartclide.context</groupId >
8
8
<artifactId >parent</artifactId >
9
- <version >2.0.0 </version >
9
+ <version >2.0.1-SNAPSHOT </version >
10
10
</parent >
11
11
12
12
<artifactId >context-monitoring</artifactId >
Original file line number Diff line number Diff line change 5
5
6
6
<groupId >org.eclipse.opensmartclide.context</groupId >
7
7
<artifactId >parent</artifactId >
8
- <version >2.0.0 </version >
8
+ <version >2.0.1-SNAPSHOT </version >
9
9
10
10
<packaging >pom</packaging >
11
11
20
20
<url >https://www.atb-bremen.de</url >
21
21
</organization >
22
22
23
+ <distributionManagement >
24
+ <repository >
25
+ <id >github</id >
26
+ <name >GitHub Packages</name >
27
+ <url >https://maven.pkg.github.com/eclipse-opensmartclide/smartclide-context</url >
28
+ </repository >
29
+ </distributionManagement >
30
+
23
31
<properties >
24
32
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
25
33
<maven .version>3.5.4</maven .version>
80
88
</extraExtensions >
81
89
82
90
<excludes >
83
- <!-- do not add license header to json files because json standard does not allow comments-->
91
+ <!-- do not add license header to json files-->
92
+ <!-- because the json standard does not allow comments-->
84
93
<exclude >**/*.json</exclude >
85
94
</excludes >
86
95
156
165
<artifactId >maven-surefire-plugin</artifactId >
157
166
<version >3.3.0</version >
158
167
</plugin >
168
+ <plugin >
169
+ <groupId >org.apache.maven.plugins</groupId >
170
+ <artifactId >maven-deploy-plugin</artifactId >
171
+ <version >3.1.2</version >
172
+ </plugin >
159
173
</plugins >
160
174
</pluginManagement >
161
175
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<groupId >org.eclipse.opensmartclide.context</groupId >
8
8
<artifactId >parent</artifactId >
9
- <version >2.0.0 </version >
9
+ <version >2.0.1-SNAPSHOT </version >
10
10
</parent >
11
11
12
12
<artifactId >smartclide-monitoring</artifactId >
23
23
<dependency >
24
24
<groupId >org.eclipse.opensmartclide.context</groupId >
25
25
<artifactId >context-monitoring</artifactId >
26
- <version >2.0.0 </version >
26
+ <version >2.0.1-SNAPSHOT </version >
27
27
</dependency >
28
28
29
29
<dependency >
35
35
36
36
<build >
37
37
<plugins >
38
+ <plugin >
39
+ <groupId >org.apache.maven.plugins</groupId >
40
+ <artifactId >maven-deploy-plugin</artifactId >
41
+ <configuration >
42
+ <!-- don't publish smartclide-specific module to maven package registry-->
43
+ <skip >true</skip >
44
+ </configuration >
45
+ </plugin >
46
+
38
47
<plugin >
39
48
<groupId >com.google.cloud.tools</groupId >
40
49
<artifactId >jib-maven-plugin</artifactId >
41
50
<version >${jib-maven-plugin.version} </version >
51
+ <executions >
52
+ <execution >
53
+ <!-- automatically build and push image during maven deploy phase-->
54
+ <phase >deploy</phase >
55
+ <goals >
56
+ <goal >build</goal >
57
+ </goals >
58
+ </execution >
59
+ </executions >
42
60
<configuration >
43
61
<from >
44
62
<image >eclipse-temurin:11.0.17_8-jre-jammy</image >
45
63
</from >
46
64
<to >
47
- <image >ghcr.io/eclipse-opensmartclide/smartclide/${project.artifactId} :latest </image >
65
+ <image >ghcr.io/eclipse-opensmartclide/smartclide/${project.artifactId} :${project.version} </image >
48
66
</to >
49
67
<container >
50
68
<ports >
You can’t perform that action at this time.
0 commit comments