11apply plugin : " curseforge"
22apply plugin : ' maven'
33
4- if (project. hasProperty(" curseforge_key" ) && project. hasProperty(" changelog" )) {
5- curse {
6- apiKey = project. curseforge_key
7- projectId = " TODO" // my project url is http://minecraft.curseforge.com/mc-mods/TODO/
8- changelog = new File (project. changelog). text
9- releaseType = " release"
4+ curse {
5+ dependsOn ' reobf'
6+ projectId = " " // TODO: my project url is http://minecraft.curseforge.com/mc-mods/232758/
7+ releaseType = project. config. release_type
8+
9+ if (project. buildnumber. equals(" RELEASE" )) {
10+ changelog = new File (" resources/changelog/${ project.version} .txt" ). text
11+ } else {
12+ changelog = " "
13+ }
1014
11- additionalArtifact deobfJar
12- additionalArtifact apiJar
13- additionalArtifact sourceJar
14- additionalArtifact javadocJar
15+ if (project . hasProperty( " curseforge_key " ) && project . hasProperty( " changelog " )) {
16+ apiKey = project . curseforge_key
17+ } else if ( System . getenv() . TRAVIS ) {
18+ apiKey = System . getenv() . CURSEFORGE_KEY_SECRET
1519 }
20+
21+ additionalArtifact deobfJar
22+ additionalArtifact sourceJar
23+ additionalArtifact javadocJar
1624}
1725
1826configurations {
@@ -35,9 +43,14 @@ uploadArchives {
3543 repository(url : project. filesmaven_url) {
3644 authentication(userName : project. filesmaven_username, password : project. filesmaven_key)
3745 }
46+ } else if (System . getenv(). MAVEN_URL ) {
47+ logger. info(' Publishing to files server' )
48+ repository(url : System . getenv(). MAVEN_URL ) {
49+ authentication(userName : System . getenv(). MAVEN_USERNAME , password : System . getenv(). MAVEN_KEY )
50+ }
3851 } else {
3952 logger. info(' Publishing to repo folder' )
40- repository(url : ' file://localhost/' + project. file(' repo ' ). getAbsolutePath())
53+ repository(url : ' file://localhost/' + project. file(' ~/.m2/repository ' ). getAbsolutePath())
4154 }
4255
4356 pom {
@@ -48,18 +61,18 @@ uploadArchives {
4861 pom. project {
4962 name project. archivesBaseName
5063 packaging ' jar'
51- description ' An evil mod for Minecraft '
52- url ' https://github.com/rubensworks/EvilCraft '
64+ description ' Craft stuff in your world, automatically. '
65+ url ' https://github.com/CyclopsMC/StructuredCrafting '
5366
5467 scm {
55- url ' https://github.com/rubensworks/EvilCraft '
56- connection ' scm:git:git://github.com/rubensworks/EvilCraft .git'
57- developerConnection ' scm:git:git@github.com:rubensworks/EvilCraft .git'
68+ url ' https://github.com/CyclopsMC/StructuredCrafting '
69+ connection ' scm:git:git://github.com/CyclopsMC/StructuredCrafting .git'
70+ developerConnection ' scm:git:git@github.com:CyclopsMC/StructuredCrafting .git'
5871 }
5972
6073 issueManagement {
6174 system ' github'
62- url ' https://github.com/rubensworks/EvilCraft /issues'
75+ url ' https://github.com/CyclopsMC/StructuredCrafting /issues'
6376 }
6477
6578 developers {
0 commit comments