Skip to content

Commit 56d1c3f

Browse files
committed
Revert "update gradle"
This reverts commit a3d4916.
1 parent ac3c9aa commit 56d1c3f

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

.github/workflows/build_snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup Java
3232
uses: actions/[email protected]
3333
with:
34-
java-version: '21'
34+
java-version: '8'
3535
distribution: 'zulu'
3636
cache: gradle
3737
- name: Build

build.gradle

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ buildscript {
99
}
1010
}
1111

12-
13-
1412
apply plugin: "net.minecraftforge.gradle.forge"
1513
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
1614

1715
version = project.mod_version
1816
group = "mods.rml" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
1917
archivesBaseName = "ResourceModLoader"
2018

21-
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
19+
sourceCompatibility = targetCompatibility = "1.8" // Need this here so eclipse task generates correctly.
20+
compileJava {
21+
sourceCompatibility = targetCompatibility = "1.8"
22+
}
2223

2324
minecraft {
2425
version = "1.12.2-14.23.5.2847"
2526
runDir = "run"
2627
mappings = "stable_39"
2728
makeObfSourceJar = true // an Srg named sources jar is made by default. uncomment this to disable.
28-
args = '--rml.debug', 'true',
29-
'--rml.test', 'true',
30-
'--rml.dev.location', '.../.../dev/example/'
29+
30+
3131
}
3232

3333
repositories {
@@ -120,9 +120,15 @@ jar {
120120
}
121121
}
122122

123+
tasks.register('buildExample', Zip) {
124+
archiveName = "example.zip"
125+
destinationDir = file("run/client/mods")
126+
127+
from "dev/example"
128+
}
123129
tasks.register('releaseExample', Zip) {
124-
archiveBaseName = "example-"+version+".zip"
125-
destinationDirectory = file("releases/example")
130+
archiveName = "example-"+version+".zip"
131+
destinationDir = file("releases/example")
126132

127133
from "dev/example"
128134
}
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\:://services.gradle.org/distributions/gradle-8.10-bin.zip
3+
# Tecent cloud mirror
4+
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-4.9-all.zip
5+
# Lss233's mirror
6+
#distributionUrl=https\://lss233.littleservice.cn/repositories/gradle-dist/gradle-4.9-all.zip
7+
# Source address
8+
#distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip
49
zipStoreBase=GRADLE_USER_HOME
510
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)