File tree Expand file tree Collapse file tree 2 files changed +46
-1
lines changed
Expand file tree Collapse file tree 2 files changed +46
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : write
11+
12+ jobs :
13+ release :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v4
19+
20+ - name : Set up JDK
21+ uses : actions/setup-java@v4
22+ with :
23+ distribution : temurin
24+ java-version : ' 11'
25+
26+ - name : Validate and build
27+ run : ./gradlew --no-daemon clean build
28+
29+ - name : Create GitHub release and upload jars
30+ uses : softprops/action-gh-release@v2
31+ with :
32+ generate_release_notes : true
33+ files : |
34+ modules/deserializer/build/libs/*.jar
35+ modules/lua2java/build/libs/*.jar
36+ modules/groovy2java/build/libs/*.jar
37+ modules/toml2java/build/libs/*.jar
38+ modules/json2java/build/libs/*.jar
39+ modules/xml2java/build/libs/*.jar
40+ env :
41+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ subprojects {
22 apply plugin : ' java-library'
33
44 group = ' org.msuo'
5- version = ' 0.0.1-SNAPSHOT '
5+ version = ' 0.0.1'
66
77 repositories {
88 mavenCentral()
@@ -22,4 +22,8 @@ subprojects {
2222 tasks. withType(Test ). configureEach {
2323 useJUnitPlatform()
2424 }
25+
26+ tasks. withType(JavaCompile ). configureEach {
27+ options. release = 11
28+ }
2529}
You can’t perform that action at this time.
0 commit comments