We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51ecd48 commit 26c8235Copy full SHA for 26c8235
build.gradle
@@ -99,6 +99,27 @@ jar {
99
}
100
101
102
+processResources {
103
+ // this will ensure that this task is redone when the versions change.
104
+ inputs.property "version", project.version
105
+ inputs.property "mcversion", "1.12.2"
106
+
107
+ duplicatesStrategy DuplicatesStrategy.WARN
108
109
+ // replace stuff in mcmod.info, nothing else
110
+ from(sourceSets.main.resources.srcDirs) {
111
+ include 'mcmod.info'
112
113
+ // replace version and mcversion
114
+ expand 'version':project.version, 'mcversion':"1.12.2"
115
+ }
116
117
+ // copy everything else except the mcmod.info
118
119
+ exclude 'mcmod.info'
120
121
+}
122
123
publishing {
124
publications {
125
mavenJava(MavenPublication) {
0 commit comments