aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorbartimaeusnek <lokko12@web.de>2020-10-12 12:44:00 +0200
committerbartimaeusnek <lokko12@web.de>2020-10-12 12:44:00 +0200
commit6d1d43085cfd92d67483aac695cf7292d5072c34 (patch)
tree504a930f1d4b7a5601bf69602242c9943dd130ef /build.gradle
parentf14f0e90f252e49b3475f8ceee8230f05b8341d6 (diff)
downloadGT5-Unofficial-6d1d43085cfd92d67483aac695cf7292d5072c34.tar.gz
GT5-Unofficial-6d1d43085cfd92d67483aac695cf7292d5072c34.tar.bz2
GT5-Unofficial-6d1d43085cfd92d67483aac695cf7292d5072c34.zip
Updated Buildscript to kts
Former-commit-id: 3f7b946b3e475f93c5bf4f58e42a64ec6d12be35
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle223
1 files changed, 0 insertions, 223 deletions
diff --git a/build.gradle b/build.gradle
deleted file mode 100644
index 9bbee2d10b..0000000000
--- a/build.gradle
+++ /dev/null
@@ -1,223 +0,0 @@
-/*
- * Copyright (c) 2018-2020 bartimaeusnek
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-buildscript {
- repositories {
- mavenCentral()
- maven {
- name = "forge"
- url = "http://files.minecraftforge.net/maven"
- }
- maven {
- name = "jitpack"
- url = "https://jitpack.io"
- }
- }
- dependencies {
- classpath "com.github.GTNH2:ForgeGradle:0d2484b"
- }
-}
-
-apply plugin: "forge"
-apply plugin: "signing"
-apply plugin: "idea"
-idea{
- module {
- downloadJavadoc = true
- downloadSources = true
- }
-}
-
-//noinspection GroovyUnusedAssignment
-sourceCompatibility = JavaVersion.VERSION_1_8
-//noinspection GroovyUnusedAssignment
-targetCompatibility = JavaVersion.VERSION_1_8
-
-compileJava.options.encoding = "UTF-8"
-
-ext.configFile = file "build.properties"
-configFile.withReader {
- def prop = new Properties()
- prop.load(it)
- project.ext.config = new ConfigSlurper().parse prop
-}
-
-
-version = config.majorUpdate+"."+config.minorUpdate+"."+config.buildNumber
-//noinspection GroovyUnusedAssignment
-group= "com.github.bartimaeusnek.bartworks" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
-//noinspection GroovyUnusedAssignment
-archivesBaseName = "bartworks"+ "[" + config.mc_version + "]"
-
-minecraft {
- version = "1.7.10-10.13.4.1614-1.7.10"
- replaceIn "MainMod.java"
- replaceIn "API_REFERENCE.java"
- replace "@version@", project.version
- replace "@apiversion@", config.APIVersion
- runDir = "run"
-}
-
-repositories {
- mavenLocal()
- maven {
- name = "gt"
- url = "https://gregtech.overminddl1.com/"
- }
- maven {
- name = "ic2"
- url = "http://maven.ic2.player.to/"
- }
- maven { // GalacticGreg, YAMCore,..
- name "UsrvDE"
- url "http://jenkins.usrv.eu:8081/nexus/content/repositories/releases/"
- }
- ivy {
- name "gtnh_download_source_stupid_underscore_typo"
- artifactPattern "http://downloads.gtnewhorizons.com/Mods_for_Jenkins/[module]_[revision].[ext]"
- }
- ivy {
- name "gtnh_download_source"
- artifactPattern "http://downloads.gtnewhorizons.com/Mods_for_Jenkins/[module]-[revision].[ext]"
- }
- maven {
- name = "OC repo"
- url = "http://maven.cil.li/"
- }
- maven {
- name = "jabba"
- url = "http://default.mobiusstrip.eu/maven"
- }
- maven {
- name = "chickenbones"
- url = "http://chickenbones.net/maven/"
- }
- maven {
- name = "Apple"
- url "http://www.ryanliptak.com/maven/"
- }
- ivy {
- name "BuildCraft"
- artifactPattern "http://www.mod-buildcraft.com/releases/BuildCraft/[revision]/[module]-[revision](-[classifier]).[ext]"
- }
- maven {
- name = "jitpack"
- url = "https://jitpack.io"
- }
-}
-
-dependencies {
- //hard deps
- compile "net.industrial-craft:industrialcraft-2:${config.ic2.version}:dev"
- //compile "com.github.GTNH2:GT5-Unofficial:experimental-SNAPSHOT:dev" //broken jitpack.io dep
- //soft deps
- compileOnly "com.azanor.baubles:Baubles:1.7.10-1.0.1.10:deobf"
- compileOnly "thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev"
- compileOnly "mods.railcraft:Railcraft_1.7.10:9.12.3.0:dev"
- compileOnly "micdoodle8.mods:MicdoodleCore:${config.galacticraft.version}:Dev"
- compileOnly "micdoodle8.mods:GalacticraftCore:${config.galacticraft.version}:Dev"
- compileOnly "micdoodle8.mods:Galacticraft-Planets:${config.galacticraft.version}:Dev"
- compileOnly "li.cil.oc:OpenComputers:MC1.7.10-1.5.+:api"
- compileOnly "net.sengir.forestry:forestry_1.7.10:4.2.16.64:dev"
- compileOnly "com.github.GTNewHorizons:GalacticGregGT5:master-SNAPSHOT"
- compileOnly fileTree(dir: "libs", include: "*.jar")
-
- //CoreLibs for compile-age
- //compileOnly "com.github.GTNH2:Yamcl:master-SNAPSHOT" //broken jitpack.io dep
- compileOnly "applecore:AppleCore:${config.applecore.version}:api"
- compileOnly "com.enderio.core:EnderCore:${config.enderiocore.version}:dev"
- compileOnly "com.enderio:EnderIO:${config.enderio.version}:dev"
- compileOnly "com.enderio:EnderIO:${config.enderio.version}:dev"
-
- //NEI
- compile "codechicken:CodeChickenLib:1.7.10-1.1.3.140:dev"
- compile "codechicken:CodeChickenCore:1.7.10-1.0.7.47:dev"
- compile "codechicken:NotEnoughItems:1.7.10-1.0.5.120:dev"
-}
-
-processResources
-{
- // this will ensure that this task is redone when the versions change.
- inputs.property "version", project.version
- inputs.property "mcversion", project.minecraft.version
-
- // replace stuff in mcmod.info, nothing else
- from(sourceSets.main.resources.srcDirs) {
- include "mcmod.info"
-
- // replace version and mcversion
- expand "version":project.version, "mcversion":project.minecraft.version
- }
-
- // copy everything else, thats not the mcmod.info
- from(sourceSets.main.resources.srcDirs) {
- exclude "mcmod.info"
- }
-}
-
-jar {
- exclude ("assets/gregtech/textures/items/materialicons/copy.bat")
- exclude ("assets/gregtech/textures/blocks/materialicons/copy.bat")
- manifest {
- attributes "FMLCorePlugin": "com.github.bartimaeusnek.ASM.BWCorePlugin","FMLCorePluginContainsFMLMod": "true"
- }
-}
-
-task apiJar(type: Jar){
- from(sourceSets.main.output) {
- include "com/github/bartimaeusnek/bartworks/API/**"
- include "com/github/bartimaeusnek/bartworks/util/**"
- include "com/github/bartimaeusnek/bartworks/system/material/Werkstoff.class"
- include "com/github/bartimaeusnek/crossmod/thaumcraft/util/**"
- }
- classifier = "API"
-}
-
-task sourceJar(type: Jar) {
- from sourceSets.main.allSource
- classifier = "sources"
-}
-
-task devJar(type: Jar) {
- from sourceSets.main.output
- classifier = "dev"
-}
-
-artifacts {
- archives devJar
- archives sourceJar
- archives apiJar
-}
-
-task signJar(dependsOn: "reobf"){
- doLast {
- ant.signjar(
- destDir: jar.destinationDir,
- jar: jar.getArchivePath(),
- alias: findProperty("keyStoreAlias") ?: "",
- keystore: findProperty("keyStore") ?: "",
- storepass: findProperty("keyStorePass") ?: "",
- digestalg: findProperty("signDigestAlg") ?: "",
- tsaurl: findProperty("signTSAurl") ?: "",
- verbose: true
- )
- }
-} \ No newline at end of file