File tree Expand file tree Collapse file tree 4 files changed +63
-0
lines changed Expand file tree Collapse file tree 4 files changed +63
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish release packages
2
+ on :
3
+ release :
4
+ types : [created]
5
+ jobs :
6
+ publish :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v3
10
+ - name : Set up Java
11
+ uses : actions/setup-java@v3
12
+ with :
13
+ java-version : ' 11'
14
+ distribution : ' adopt'
15
+ - name : Validate Gradle wrapper
16
+ uses : gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
17
+ - name : Publish package
18
+ uses : gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629
19
+ with :
20
+ arguments : publish
Original file line number Diff line number Diff line change @@ -35,4 +35,7 @@ undeploy:
35
35
deploy-samples :
36
36
kubectl apply -f ./deploy/samples
37
37
38
+ release :
39
+ ./gradlew publish
40
+
38
41
.PHONY : build clean quickstart deploy-dev-environment deploy deploy-samples integration-tests
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id ' java-library'
3
3
id ' idea'
4
+ id ' maven-publish'
4
5
}
5
6
6
7
dependencies {
@@ -11,6 +12,25 @@ dependencies {
11
12
testImplementation libs. assertj
12
13
}
13
14
15
+ publishing {
16
+ repositories {
17
+ maven {
18
+ url = " https://maven.pkg.github.com/linkedin/Hoptimator"
19
+ credentials {
20
+ username = System . getenv(' GITHUB_ACTOR' )
21
+ password = System . getenv(' GITHUB_TOKEN' )
22
+ }
23
+ }
24
+ }
25
+ publications {
26
+ maven(MavenPublication ) {
27
+ groupId = ' com.linkedin.hoptimator'
28
+ artifactId = ' hoptimator-catalog'
29
+ from components. java
30
+ }
31
+ }
32
+ }
33
+
14
34
tasks. withType(JavaCompile ) {
15
35
options. compilerArgs << ' -Xlint:deprecation'
16
36
options. compilerArgs << ' -Xlint:unchecked'
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id ' java-library'
3
3
id ' idea'
4
+ id ' maven-publish'
4
5
}
5
6
6
7
dependencies {
@@ -10,6 +11,25 @@ dependencies {
10
11
api libs. calciteCore
11
12
}
12
13
14
+ publishing {
15
+ repositories {
16
+ maven {
17
+ url = " https://maven.pkg.github.com/linkedin/Hoptimator"
18
+ credentials {
19
+ username = System . getenv(' GITHUB_ACTOR' )
20
+ password = System . getenv(' GITHUB_TOKEN' )
21
+ }
22
+ }
23
+ }
24
+ publications {
25
+ maven(MavenPublication ) {
26
+ groupId = ' com.linkedin.hoptimator'
27
+ artifactId = ' hoptimator-planner'
28
+ from components. java
29
+ }
30
+ }
31
+ }
32
+
13
33
tasks. withType(JavaCompile ) {
14
34
options. compilerArgs << ' -Xlint:deprecation'
15
35
options. compilerArgs << ' -Xlint:unchecked'
You can’t perform that action at this time.
0 commit comments