Update buildscript, add setup.bat

This commit is contained in:
Brennan Ward 2019-11-07 20:26:53 -05:00
parent 5cf1d2e674
commit 90c937a27a
3 changed files with 39 additions and 27 deletions

View File

@ -15,32 +15,26 @@ apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse' apply plugin: 'eclipse'
apply plugin: 'idea' apply plugin: 'idea'
version = "1.14.4-r151" version = "2.0.0"
group = "de.ellpeck.actuallyadditions" group = "de.ellpeck.actuallyadditions"
archivesBaseName = "ActuallyAdditions" archivesBaseName = "ActuallyAdditions-1.14.4"
if(hasProperty('buildnumber')){ sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
version = "${version}-${this.properties['buildnumber']}"
}
minecraft { minecraft {
mappings channel: "snapshot", version: "20191107-1.14.3" mappings channel: "snapshot", version: "20191107-1.14.3"
runs { runs {
client = { client = {
workingDirectory project.file("run/client").canonicalPath properties 'forge.logging.markers': ''
mods { properties 'forge.logging.console.level': 'debug'
actuallyadditions { workingDirectory project.file('run').canonicalPath
source sourceSets.main source sourceSets.main
}
}
} }
server = { server = {
workingDirectory project.file("run/server").canonicalPath properties 'forge.logging.markers': ''
mods { properties 'forge.logging.console.level': 'debug'
actuallyadditions { workingDirectory project.file('run').canonicalPath
source sourceSets.main source sourceSets.main
}
}
} }
data = { data = {
workingDirectory project.file("run/data").canonicalPath workingDirectory project.file("run/data").canonicalPath
@ -56,24 +50,34 @@ minecraft {
repositories { repositories {
maven { maven {
url "https://dvs1.progwml6.com/files/maven" url "http://dvs1.progwml6.com/files/maven"
} }
maven { maven {
url "http://tehnut.info/maven" url "http://tehnut.info/maven"
} }
maven {
url "https://dl.bintray.com/cyclopsmc/dev/"
}
} }
dependencies { dependencies {
minecraft "net.minecraftforge:forge:1.14.4-28.1.86" minecraft 'net.minecraftforge:forge:1.14.4-28.1.86'
compileOnly fg.deobf("mezz.jei:jei-1.14.4:6.0.0.24:api") compile fg.deobf('mezz.jei:jei-1.14.4:+')
runtimeOnly fg.deobf("mezz.jei:jei-1.14.4:6.0.0.24") compile fg.deobf('mcp.mobius.waila:Hwyla:1.10+')
//deobfCompile "mcp.mobius.waila:Hwyla:1.8+" compile fileTree(dir: 'libs', include: '*.jar')
//deobfCompile ("org.cyclops.commoncapabilities:CommonCapabilities:1.12.2-+")
} }
jar {
manifest {
attributes(["Specification-Title": "actuallyadditions",
"Specification-Vendor": "Ellpeck",
"Specification-Version": "24.0",
"Implementation-Title": project.name,
"Implementation-Version": "${version}",
"Implementation-Vendor" :"Ellpeck",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],)
}
}
/*TODO: Re-evaluate
def normalManifest = { def normalManifest = {
attributes( attributes(
"Built-On": "1.14.4", "Built-On": "1.14.4",
@ -135,4 +139,5 @@ publishing {
url "file:///srv/nginx/maven" url "file:///srv/nginx/maven"
} }
} }
} }
*/

Binary file not shown.

7
setup.bat Normal file
View File

@ -0,0 +1,7 @@
call gradlew eclipse --no-daemon
call gradlew eclipse genEclipseRuns --no-daemon
for %%I in (.) do set PROJNAME=%%~nxI
del %PROJNAME%-Client.launch
del %PROJNAME%-Server.launch
ren runClient.launch %PROJNAME%-Client.launch
ren runServer.launch %PROJNAME%-Server.launch