mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-26 23:13:07 +00:00
Update build.gradle
Add source jar generation as an option. Useful for Mavenisation, when TCon is just referred to by a Maven dependency. This attaches clean sources without decompiling or checking out from Git.
This commit is contained in:
1 parent
af27bcdada
commit
8b8293fc64
1 file changed
+7
@@ -153,9 +153,16 @@ task libJar(type: Jar) {
|
||||
classifier = 'lib'
|
||||
}
|
||||
|
||||
// Create Maven source jar
|
||||
task sourceJar(type: Jar, dependsOn:classes) {
|
||||
classifier = 'sources'
|
||||
from sourceSets.main.allSource
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives deobfJar
|
||||
archives libJar
|
||||
archives sourceJar
|
||||
}
|
||||
// verify the properties exist.. or initialize.
|
||||
if (!project.hasProperty("keystore_location")) // keystore location
|
||||
|
||||
Reference in new issue
Block a user