File tree Expand file tree Collapse file tree 2 files changed +31
-10
lines changed
Expand file tree Collapse file tree 2 files changed +31
-10
lines changed Original file line number Diff line number Diff line change 11name : Release
2-
32on :
43 push :
54 tags :
65 - " v*"
7-
86jobs :
97 release :
108 name : " Release"
119 runs-on : " ubuntu-latest"
1210 steps :
13- - uses : " marvinpinto/action-automatic-releases@latest"
14- with :
15- repo_token : " ${{ secrets.GITHUB_TOKEN }}"
16- prerelease : false
17- files : |
18- LICENSE.txt
19- *.jar
11+ - name : Checkout code
12+ uses : actions/checkout@v2
13+
14+ - name : Set up JDK
15+ uses : actions/setup-java@v3
16+ with :
17+ java-version : ' 17'
18+
19+ - name : Build with Gradle
20+ run : ./gradlew build
21+
22+ - name : Automated Release
23+ uses : " marvinpinto/action-automatic-releases@latest"
24+ with :
25+ repo_token : " ${{ secrets.GITHUB_TOKEN }}"
26+ prerelease : false
27+ files : |
28+ LICENSE.txt
29+ *.jar
Original file line number Diff line number Diff line change @@ -6,14 +6,19 @@ compileJava.options.encoding = "UTF-8"
66compileTestJava. options. encoding = " UTF-8"
77
88allprojects {
9- version = ' 1.0.0 '
9+ version = ' 1.0.1 '
1010 group = ' cz.foresttech'
1111
1212 repositories {
1313 mavenCentral()
1414 }
1515}
1616
17+ build {
18+ dependsOn clean
19+ dependsOn jar
20+ }
21+
1722subprojects {
1823 apply plugin : ' java'
1924
@@ -34,5 +39,11 @@ subprojects {
3439 dependencies {
3540 implementation project(' :shared' )
3641 }
42+
43+ jar {
44+ archiveBaseName. set(rootProject. name + ' -' + project. name)
45+ archiveVersion. set(version)
46+ destinationDirectory. set(file(" $rootDir /build/libs" ))
47+ }
3748 }
3849}
You can’t perform that action at this time.
0 commit comments