Skip to content

Commit d428df6

Browse files
1.1.0, downgrade version to 1.15.2, update deps
1 parent 10ddf5f commit d428df6

File tree

10 files changed

+240
-163
lines changed

10 files changed

+240
-163
lines changed

build.gradle

+11-13
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
import org.apache.tools.ant.filters.ReplaceTokens
2+
13
plugins {
2-
id 'fabric-loom' version '0.2.7-SNAPSHOT'
4+
id 'fabric-loom' version '0.10-SNAPSHOT'
35
id 'maven-publish'
46
id 'com.jfrog.artifactory' version '4.9.0'
57
}
68

7-
sourceCompatibility = JavaVersion.VERSION_1_8
8-
targetCompatibility = JavaVersion.VERSION_1_8
9+
tasks.withType(JavaCompile).configureEach {
10+
it.options.release.set(8)
11+
}
912

1013
archivesBaseName = 'cotton-client-commands'
1114
version = "$project.mod_version+$project.minecraft_version"
@@ -25,15 +28,10 @@ dependencies {
2528
}
2629

2730
processResources {
28-
inputs.property "version", project.version
29-
30-
from(sourceSets.main.resources.srcDirs) {
31-
include "fabric.mod.json"
32-
expand "version": project.version
33-
}
34-
35-
from(sourceSets.main.resources.srcDirs) {
36-
exclude "fabric.mod.json"
31+
filesMatching("fabric.mod.json") {
32+
filter (ReplaceTokens, tokens: [
33+
"version": project.getVersion().toString()
34+
])
3735
}
3836
}
3937

@@ -48,7 +46,7 @@ tasks.withType(JavaCompile) {
4846
// if it is present.
4947
// If you remove this task, sources will not be generated.
5048
task sourcesJar(type: Jar, dependsOn: classes) {
51-
classifier = "sources"
49+
archiveClassifier.set("sources")
5250
from sourceSets.main.allSource
5351
}
5452

gradle.properties

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
maven_group = io.github.cottonmc
2-
mod_version = 1.0.1
2+
mod_version = 1.1.0
33

4-
minecraft_version = 1.16-rc1
5-
yarn_mappings = 1.16-rc1+build.5
6-
loader_version = 0.8.8+build.202
4+
# 1.16 has the official Fabric's client commands
5+
minecraft_version = 1.15.2
6+
yarn_mappings = 1.15.2+build.17
7+
loader_version = 0.12.12

gradle/wrapper/gradle-wrapper.jar

6.56 KB
Binary file not shown.
+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Mon Aug 22 17:36:22 EDT 2016
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip

0 commit comments

Comments
 (0)