File tree 8 files changed +497
-0
lines changed
8 files changed +497
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Java CI
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ buildJar :
7
+ runs-on : ubuntu-latest
8
+
9
+ steps :
10
+ - uses : actions/checkout@v4
11
+
12
+ - name : Set up PATH
13
+ run : echo "${ANDROID_HOME}/build-tools/30.0.1" >> $GITHUB_PATH
14
+
15
+ - name : Set up JDK 17
16
+ uses : actions/setup-java@v4
17
+ with :
18
+ java-version : 17
19
+ distribution : temurin
20
+
21
+ - name : Build mod jar
22
+ run : ./gradlew deploy
23
+
24
+ - name : Upload built jar file
25
+ uses : actions/upload-artifact@v4
26
+ with :
27
+ name : ${{ github.event.repository.name }}
28
+ path : build/libs/${{ github.event.repository.name }}.jar
29
+
30
+ - name : Create Release
31
+ id : create_release
32
+ uses : actions/create-release@v1
33
+ env :
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+ with :
36
+ tag_name : ${{github.run_number}}
37
+ release_name : ${{github.run_number}}
38
+ draft : false
39
+ prerelease : false
40
+
41
+ - name : Upload Release Asset
42
+ uses : actions/upload-release-asset@v1
43
+ env :
44
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45
+ with :
46
+ upload_url : ${{ steps.create_release.outputs.upload_url }}
47
+ asset_path : build/libs/fooKotlinScriptSupport.jar
48
+ asset_name : ${{ github.event.repository.name }}.jar
49
+ asset_content_type : application/zip
Original file line number Diff line number Diff line change
1
+ logs /
2
+ /core /assets /mindustry-saves /
3
+ /core /assets /mindustry-maps /
4
+ /core /assets /bundles /output /
5
+ /core /assets /.gifimages /
6
+ /deploy /
7
+ /desktop /packr-out /
8
+ /desktop /packr-export /
9
+ /desktop /mindustry-saves /
10
+ /desktop /mindustry-maps /
11
+ /desktop /gifexport /
12
+ /core /lib /
13
+ /ios /assets /
14
+ /core /assets-raw /sprites /generated /
15
+ /core /assets-raw /sprites_out /
16
+ /annotations /build /
17
+ /annotations /out /
18
+ /net /build /
19
+ /tools /build /
20
+ /tests /build /
21
+ /server /build /
22
+ /test_files /
23
+ /annotations /build /
24
+ /desktop-sdl /build /
25
+ desktop-sdl /build /
26
+ /android /assets /mindustry-maps /
27
+ /android /assets /mindustry-saves /
28
+ /core /assets /gifexport /
29
+ /core /assets /version.properties
30
+ /core /assets /locales
31
+ /ios /src /io /anuke /mindustry /gen /
32
+ /core /src /io /anuke /mindustry /gen /
33
+ ios /robovm.properties
34
+ packr-out /
35
+ config /
36
+ * .gif
37
+
38
+ version.properties
39
+
40
+ .attach_ *
41
+ # # Java
42
+
43
+ * .class
44
+ * .war
45
+ * .ear
46
+ hs_err_pid *
47
+ crash-report- *
48
+ replay_pid *
49
+
50
+ # # Robovm
51
+ /ios /robovm-build /
52
+
53
+ # # GWT
54
+ /html /war /
55
+ /html /gwt-unitCache /
56
+ .apt_generated /
57
+ .gwt /
58
+ gwt-unitCache /
59
+ www-test /
60
+ .gwt-tmp /
61
+
62
+ # # Android Studio and Intellij and Android in general
63
+ /android /libs /armeabi /
64
+ /android /libs /armeabi-v7a /
65
+ /android /libs /arm64-v8a /
66
+ /android /libs /x86 /
67
+ /android /libs /x86_64 /
68
+ /android /gen /
69
+ .idea /
70
+ * .ipr
71
+ * .iws
72
+ * .iml
73
+ /android /out /
74
+ com_crashlytics_export_strings.xml
75
+
76
+ # # Eclipse
77
+
78
+ .classpath
79
+ .project
80
+ .metadata /
81
+ /android /bin /
82
+ /core /bin /
83
+ /desktop /bin /
84
+ /html /bin /
85
+ /ios /bin /
86
+ /ios-moe /bin /
87
+ * .tmp
88
+ * .bak
89
+ * .swp
90
+ * ~.nib
91
+ .settings /
92
+ .loadpath
93
+ .externalToolBuilders /
94
+ * .launch
95
+
96
+ # # NetBeans
97
+
98
+ /nbproject /private /
99
+ /android /nbproject /private /
100
+ /core /nbproject /private /
101
+ /desktop /nbproject /private /
102
+ /html /nbproject /private /
103
+ /ios /nbproject /private /
104
+ /ios-moe /nbproject /private /
105
+
106
+ /build /
107
+ /android /build /
108
+ /core /build /
109
+ /desktop /build /
110
+ /html /build /
111
+ /ios /build /
112
+ /ios-moe /build /
113
+
114
+ /nbbuild /
115
+ /android /nbbuild /
116
+ /core /nbbuild /
117
+ /desktop /nbbuild /
118
+ /html /nbbuild /
119
+ /ios /nbbuild /
120
+ /ios-moe /nbbuild /
121
+
122
+ /dist /
123
+ /android /dist /
124
+ /core /dist /
125
+ /desktop /dist /
126
+ /html /dist /
127
+ /ios /dist /
128
+ /ios-moe /dist /
129
+
130
+ /nbdist /
131
+ /android /nbdist /
132
+ /core /nbdist /
133
+ /desktop /nbdist /
134
+ /html /nbdist /
135
+ /ios /nbdist /
136
+ /ios-moe /nbdist /
137
+
138
+ nbactions.xml
139
+ nb-configuration.xml
140
+
141
+ # # Gradle
142
+
143
+ /local.properties
144
+ .gradle /
145
+ gradle-app.setting
146
+ /build /
147
+ /android /build /
148
+ /core /build /
149
+ /desktop /build /
150
+ /html /build /
151
+ /ios /build /
152
+ /ios-moe /build /
153
+
154
+ # # OS Specific
155
+ .DS_Store
156
+ Thumbs.db
157
+ android /libs /
Original file line number Diff line number Diff line change
1
+ plugins {
2
+ id ' java'
3
+ }
4
+
5
+ repositories {
6
+ mavenCentral()
7
+ }
8
+
9
+ dependencies {
10
+ implementation " org.jetbrains.kotlin:kotlin-scripting-jsr223:2.0.10"
11
+ }
12
+
13
+ jar {
14
+ archiveFileName = " fooKotlinScriptSupport.jar"
15
+ from configurations. runtimeClasspath. collect{ it. isDirectory() ? it : zipTree(it) }
16
+ duplicatesStrategy = DuplicatesStrategy . EXCLUDE
17
+ }
Original file line number Diff line number Diff line change
1
+ org.gradle.jvmargs =--illegal-access =permit \
2
+ --add-exports =jdk.compiler/com.sun.tools.javac.api =ALL-UNNAMED \
3
+ --add-exports =jdk.compiler/com.sun.tools.javac.code =ALL-UNNAMED \
4
+ --add-exports =jdk.compiler/com.sun.tools.javac.model =ALL-UNNAMED \
5
+ --add-exports =jdk.compiler/com.sun.tools.javac.processing =ALL-UNNAMED \
6
+ --add-exports =jdk.compiler/com.sun.tools.javac.parser =ALL-UNNAMED \
7
+ --add-exports =jdk.compiler/com.sun.tools.javac.util =ALL-UNNAMED \
8
+ --add-exports =jdk.compiler/com.sun.tools.javac.tree =ALL-UNNAMED \
9
+ --add-exports =jdk.compiler/com.sun.tools.javac.file =ALL-UNNAMED \
10
+ --add-exports =jdk.compiler/com.sun.tools.javac.main =ALL-UNNAMED \
11
+ --add-exports =jdk.compiler/com.sun.tools.javac.jvm =ALL-UNNAMED \
12
+ --add-exports =jdk.compiler/com.sun.tools.javac.comp =ALL-UNNAMED \
13
+ --add-exports =java.base/sun.reflect.annotation =ALL-UNNAMED
Original file line number Diff line number Diff line change
1
+ distributionBase =GRADLE_USER_HOME
2
+ distributionPath =wrapper/dists
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
4
+ zipStoreBase =GRADLE_USER_HOME
5
+ zipStorePath =wrapper/dists
You can’t perform that action at this time.
0 commit comments