Skip to content

Commit 63c8863

Browse files
authored
Merge pull request #37 from LolHens/dependabot/gradle/net.fabricmc-fabric-loom-0.8.17
Bump fabric-loom from 0.7.9 to 0.8.17 and ForgeGradle from 4.1.+ to 5.0.8
2 parents 9828f50 + 07b2ecb commit 63c8863

File tree

9 files changed

+85
-97
lines changed

9 files changed

+85
-97
lines changed

fabric-1.15.2/build.gradle

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
gradlePluginPortal()
88
}
99
dependencies {
10-
classpath group: 'net.fabricmc', name: 'fabric-loom', version: '0.7.9'
10+
classpath group: 'net.fabricmc', name: 'fabric-loom', version: '0.7.33'
1111
}
1212
}
1313
apply plugin: 'fabric-loom'
@@ -22,8 +22,7 @@ version = parent.version + "+fabric-" + project.minecraft_version
2222
group = parent.group
2323

2424
configurations {
25-
shadow
26-
compile.extendsFrom(shadow)
25+
implementation.extendsFrom(shadow)
2726
}
2827

2928
dependencies {
@@ -52,14 +51,9 @@ dependencies {
5251
processResources {
5352
inputs.property "version", project.version
5453

55-
from(sourceSets.main.resources.srcDirs) {
56-
include "fabric.mod.json"
54+
filesMatching("fabric.mod.json") {
5755
expand "version": project.version
5856
}
59-
60-
from(sourceSets.main.resources.srcDirs) {
61-
exclude "fabric.mod.json"
62-
}
6357
}
6458

6559
// ensure that the encoding is set to UTF-8, no matter what the system default is
@@ -69,16 +63,17 @@ tasks.withType(JavaCompile) {
6963
options.encoding = "UTF-8"
7064
}
7165

72-
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
73-
// if it is present.
74-
// If you remove this task, sources will not be generated.
75-
task sourcesJar(type: Jar, dependsOn: classes) {
76-
classifier = "sources"
77-
from sourceSets.main.allSource
66+
java {
67+
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
68+
// if it is present.
69+
// If you remove this line, sources will not be generated.
70+
withSourcesJar()
7871
}
7972

8073
jar {
81-
from "LICENSE"
74+
from("LICENSE") {
75+
rename { "${it}_${project.archivesBaseName}"}
76+
}
8277
from {
8378
configurations.shadow.collect { file ->
8479
[

fabric-1.16.1/build.gradle

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
gradlePluginPortal()
88
}
99
dependencies {
10-
classpath group: 'net.fabricmc', name: 'fabric-loom', version: '0.7.9'
10+
classpath group: 'net.fabricmc', name: 'fabric-loom', version: '0.7.33'
1111
}
1212
}
1313
apply plugin: 'fabric-loom'
@@ -22,8 +22,7 @@ version = parent.version + "+fabric-" + project.minecraft_version
2222
group = parent.group
2323

2424
configurations {
25-
shadow
26-
compile.extendsFrom(shadow)
25+
implementation.extendsFrom(shadow)
2726
}
2827

2928
dependencies {
@@ -52,14 +51,9 @@ dependencies {
5251
processResources {
5352
inputs.property "version", project.version
5453

55-
from(sourceSets.main.resources.srcDirs) {
56-
include "fabric.mod.json"
54+
filesMatching("fabric.mod.json") {
5755
expand "version": project.version
5856
}
59-
60-
from(sourceSets.main.resources.srcDirs) {
61-
exclude "fabric.mod.json"
62-
}
6357
}
6458

6559
// ensure that the encoding is set to UTF-8, no matter what the system default is
@@ -69,16 +63,17 @@ tasks.withType(JavaCompile) {
6963
options.encoding = "UTF-8"
7064
}
7165

72-
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
73-
// if it is present.
74-
// If you remove this task, sources will not be generated.
75-
task sourcesJar(type: Jar, dependsOn: classes) {
76-
classifier = "sources"
77-
from sourceSets.main.allSource
66+
java {
67+
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
68+
// if it is present.
69+
// If you remove this line, sources will not be generated.
70+
withSourcesJar()
7871
}
7972

8073
jar {
81-
from "LICENSE"
74+
from("LICENSE") {
75+
rename { "${it}_${project.archivesBaseName}"}
76+
}
8277
from {
8378
configurations.shadow.collect { file ->
8479
[

fabric-1.16.2/build.gradle

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
gradlePluginPortal()
88
}
99
dependencies {
10-
classpath group: 'net.fabricmc', name: 'fabric-loom', version: '0.7.9'
10+
classpath group: 'net.fabricmc', name: 'fabric-loom', version: '0.7.33'
1111
}
1212
}
1313
apply plugin: 'fabric-loom'
@@ -22,8 +22,7 @@ version = parent.version + "+fabric-" + project.minecraft_version
2222
group = parent.group
2323

2424
configurations {
25-
shadow
26-
compile.extendsFrom(shadow)
25+
implementation.extendsFrom(shadow)
2726
}
2827

2928
dependencies {
@@ -52,14 +51,9 @@ dependencies {
5251
processResources {
5352
inputs.property "version", project.version
5453

55-
from(sourceSets.main.resources.srcDirs) {
56-
include "fabric.mod.json"
54+
filesMatching("fabric.mod.json") {
5755
expand "version": project.version
5856
}
59-
60-
from(sourceSets.main.resources.srcDirs) {
61-
exclude "fabric.mod.json"
62-
}
6357
}
6458

6559
// ensure that the encoding is set to UTF-8, no matter what the system default is
@@ -69,16 +63,17 @@ tasks.withType(JavaCompile) {
6963
options.encoding = "UTF-8"
7064
}
7165

72-
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
73-
// if it is present.
74-
// If you remove this task, sources will not be generated.
75-
task sourcesJar(type: Jar, dependsOn: classes) {
76-
classifier = "sources"
77-
from sourceSets.main.allSource
66+
java {
67+
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
68+
// if it is present.
69+
// If you remove this line, sources will not be generated.
70+
withSourcesJar()
7871
}
7972

8073
jar {
81-
from "LICENSE"
74+
from("LICENSE") {
75+
rename { "${it}_${project.archivesBaseName}"}
76+
}
8277
from {
8378
configurations.shadow.collect { file ->
8479
[

fabric-1.16.4/build.gradle

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
gradlePluginPortal()
88
}
99
dependencies {
10-
classpath group: 'net.fabricmc', name: 'fabric-loom', version: '0.7.9'
10+
classpath group: 'net.fabricmc', name: 'fabric-loom', version: '0.7.33'
1111
}
1212
}
1313
apply plugin: 'fabric-loom'
@@ -22,8 +22,7 @@ version = parent.version + "+fabric-" + project.minecraft_version
2222
group = parent.group
2323

2424
configurations {
25-
shadow
26-
compile.extendsFrom(shadow)
25+
implementation.extendsFrom(shadow)
2726
}
2827

2928
dependencies {
@@ -52,14 +51,9 @@ dependencies {
5251
processResources {
5352
inputs.property "version", project.version
5453

55-
from(sourceSets.main.resources.srcDirs) {
56-
include "fabric.mod.json"
54+
filesMatching("fabric.mod.json") {
5755
expand "version": project.version
5856
}
59-
60-
from(sourceSets.main.resources.srcDirs) {
61-
exclude "fabric.mod.json"
62-
}
6357
}
6458

6559
// ensure that the encoding is set to UTF-8, no matter what the system default is
@@ -69,16 +63,17 @@ tasks.withType(JavaCompile) {
6963
options.encoding = "UTF-8"
7064
}
7165

72-
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
73-
// if it is present.
74-
// If you remove this task, sources will not be generated.
75-
task sourcesJar(type: Jar, dependsOn: classes) {
76-
classifier = "sources"
77-
from sourceSets.main.allSource
66+
java {
67+
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
68+
// if it is present.
69+
// If you remove this line, sources will not be generated.
70+
withSourcesJar()
7871
}
7972

8073
jar {
81-
from "LICENSE"
74+
from("LICENSE") {
75+
rename { "${it}_${project.archivesBaseName}"}
76+
}
8277
from {
8378
configurations.shadow.collect { file ->
8479
[

fabric-1.17/build.gradle

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
gradlePluginPortal()
99
}
1010
dependencies {
11-
classpath group: 'net.fabricmc', name: 'fabric-loom', version: '0.7.9'
11+
classpath group: 'net.fabricmc', name: 'fabric-loom', version: '0.7.33'
1212
}
1313
}
1414
apply plugin: 'fabric-loom'
@@ -23,8 +23,7 @@ version = parent.version + "+fabric-" + project.minecraft_version
2323
group = parent.group
2424

2525
configurations {
26-
shadow
27-
compile.extendsFrom(shadow)
26+
implementation.extendsFrom(shadow)
2827
}
2928

3029
dependencies {
@@ -53,33 +52,30 @@ dependencies {
5352
processResources {
5453
inputs.property "version", project.version
5554

56-
from(sourceSets.main.resources.srcDirs) {
57-
include "fabric.mod.json"
55+
filesMatching("fabric.mod.json") {
5856
expand "version": project.version
5957
}
60-
61-
from(sourceSets.main.resources.srcDirs) {
62-
exclude "fabric.mod.json"
63-
}
6458
}
6559

6660
// ensure that the encoding is set to UTF-8, no matter what the system default is
6761
// this fixes some edge cases with special characters not displaying correctly
6862
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
6963
tasks.withType(JavaCompile) {
7064
options.encoding = "UTF-8"
65+
options.release = 16
7166
}
7267

73-
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
74-
// if it is present.
75-
// If you remove this task, sources will not be generated.
76-
task sourcesJar(type: Jar, dependsOn: classes) {
77-
classifier = "sources"
78-
from sourceSets.main.allSource
68+
java {
69+
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
70+
// if it is present.
71+
// If you remove this line, sources will not be generated.
72+
withSourcesJar()
7973
}
8074

8175
jar {
82-
from "LICENSE"
76+
from("LICENSE") {
77+
rename { "${it}_${project.archivesBaseName}"}
78+
}
8379
from {
8480
configurations.shadow.collect { file ->
8581
[

forge-1.15.2/build.gradle

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
mavenCentral()
77
}
88
dependencies {
9-
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '4.1.+', changing: true
9+
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '4.1.3'
1010
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
1111
classpath 'de.lolhens:java-mixin-stubber:0.0.2'
1212
}
@@ -98,15 +98,18 @@ minecraft {
9898
}
9999

100100
configurations {
101-
shadow
102-
compile.extendsFrom(shadow)
101+
implementation.extendsFrom(compile)
102+
implementation.extendsFrom(shadow)
103103
}
104104

105105
repositories {
106106
maven {
107107
url = 'https://minecraft.curseforge.com/api/maven/'
108108
metadataSources { artifact() }
109109
}
110+
maven {
111+
url = 'https://repo.spongepowered.org/repository/maven-public/'
112+
}
110113
}
111114

112115
dependencies {
@@ -115,9 +118,9 @@ dependencies {
115118
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
116119
minecraft 'net.minecraftforge:forge:1.15.2-31.2.43'
117120

118-
annotationProcessor 'org.spongepowered:mixin:0.8.2:processor'
121+
annotationProcessor 'org.spongepowered:mixin:0.8.3:processor'
119122

120-
implementation 'org.spongepowered:mixin:0.8'
123+
implementation 'org.spongepowered:mixin:0.8.3'
121124
implementation "scalable-cats-force:ScalableCatsForce-2.13.2-build:2:dev"
122125
implementation "org.scala-lang:scala-library:2.13.6"
123126
implementation group: 'org.typelevel', name: "cats-core_2.13", version: '2.6.1'

forge-1.16.1/build.gradle

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
mavenCentral()
77
}
88
dependencies {
9-
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '4.1.+', changing: true
9+
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '4.1.3'
1010
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
1111
classpath 'de.lolhens:java-mixin-stubber:0.0.2'
1212
}
@@ -98,15 +98,18 @@ minecraft {
9898
}
9999

100100
configurations {
101-
shadow
102-
compile.extendsFrom(shadow)
101+
implementation.extendsFrom(compile)
102+
implementation.extendsFrom(shadow)
103103
}
104104

105105
repositories {
106106
maven {
107107
url = 'https://minecraft.curseforge.com/api/maven/'
108108
metadataSources { artifact() }
109109
}
110+
maven {
111+
url = 'https://repo.spongepowered.org/repository/maven-public/'
112+
}
110113
}
111114

112115
dependencies {
@@ -115,7 +118,7 @@ dependencies {
115118
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
116119
minecraft 'net.minecraftforge:forge:1.16.1-32.0.108'
117120

118-
annotationProcessor 'org.spongepowered:mixin:0.8.2:processor'
121+
annotationProcessor 'org.spongepowered:mixin:0.8.3:processor'
119122

120123
implementation "scalable-cats-force:ScalableCatsForce-2.13.2-build:2:dev"
121124
implementation "org.scala-lang:scala-library:2.13.6"

0 commit comments

Comments
 (0)