Unknown 6 жил өмнө
parent
commit
1432941eab
3 өөрчлөгдсөн 13 нэмэгдсэн , 5 устгасан
  1. 2 2
      README.md
  2. 10 2
      build.gradle
  3. 1 1
      gradle.properties

+ 2 - 2
README.md

@@ -1,11 +1,11 @@
-# Cloth Config
+# Cloth Config [ ![Download](https://api.bintray.com/packages/shedaniel/ClothConfig/ClothConfig2/images/download.svg) ](https://bintray.com/shedaniel/ClothConfig/ClothConfig2/_latestVersion)
 ## Maven
 ```groovy
 repositories {
     maven { url "https://dl.bintray.com/shedaniel/ClothConfig" }
 }
 dependencies {
-    modCompile "me.shedaniel:ClothConfig:0.3.1"
+    modCompile "me.shedaniel:ClothConfig:LATEST"
 }
 ```
 ## APIs

+ 10 - 2
build.gradle

@@ -47,14 +47,22 @@ bintray {
     }
 }
 
+// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
+// if it is present.
+// If you remove this task, sources will not be generated.
+task sourcesJar(type: Jar, dependsOn: classes) {
+    classifier = 'sources'
+    from sourceSets.main.allSource
+}
+
 publishing {
     publications {
         MyPublication(MavenPublication) {
             artifact(file("${project.buildDir}/libs/${project.archivesBaseName}-${project.version}.jar")) {
                 builtBy remapJar
             }
-            artifact(jar) {
-                builtBy jar
+            artifact(sourcesJar) {
+                builtBy remapSourcesJar
             }
         }
     }

+ 1 - 1
gradle.properties

@@ -2,5 +2,5 @@ minecraft_version=1.14.2
 yarn_version=1.14.2+build.2
 fabric_loader_version=0.4.7+build.147
 fabric_version=0.3.0-pre+build.165
-mod_version=0.3.1
+mod_version=0.3.2
 modmenu_version=1.5.4-85