equivalent-exchange-3/build.gradle

162 lines
4.6 KiB
Groovy
Raw Normal View History

2013-12-13 10:45:03 +01:00
buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
2021-12-04 06:37:08 +01:00
url = "https://maven.minecraftforge.net"
2013-12-13 10:45:03 +01:00
}
2014-03-28 02:34:47 +01:00
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
2013-12-13 10:45:03 +01:00
}
dependencies {
2023-01-03 18:07:26 +01:00
classpath ('com.anatawa12.forge:ForgeGradle:1.2-1.0.+') {
changing = true
}
2013-12-13 10:45:03 +01:00
}
}
2014-09-30 17:29:45 +02:00
apply plugin: 'java'
2021-12-04 06:37:08 +01:00
//apply plugin: 'scala'
2014-03-28 02:34:47 +01:00
apply plugin: 'forge'
2014-09-30 17:29:45 +02:00
2016-05-19 03:43:16 +02:00
sourceCompatibility = 1.8
targetCompatibility = 1.8
2014-09-30 17:29:45 +02:00
repositories {
2021-12-04 06:37:08 +01:00
mavenCentral()
maven {
name = "gt"
url = "https://gregtech.overminddl1.com/"
2023-01-03 18:07:26 +01:00
metadataSources {
artifact()
}
2014-09-30 17:29:45 +02:00
}
2021-12-04 06:37:08 +01:00
maven {
name = "jitpack"
url = "https://jitpack.io"
}
/* flatDir {
dirs 'libs'
}*/
2014-09-30 17:29:45 +02:00
}
dependencies {
2023-03-15 16:26:58 +01:00
implementation "com.github.GTNewHorizons:NotEnoughItems:2.3.39-GTNH:dev"
2021-12-04 06:37:08 +01:00
implementation "com.github.GTNewHorizons:waila:master-SNAPSHOT:dev"
// implementation "mozeintel:ProjectE:1.7.10-PE1.10.1"
2014-09-30 17:29:45 +02:00
}
2013-12-13 10:45:03 +01:00
ext.configFile = file "build.properties"
configFile.withReader {
def prop = new Properties()
prop.load(it)
project.ext.config = new ConfigSlurper().parse prop
}
version = config.mod_version
2014-03-28 02:34:47 +01:00
group = "com.pahimar.ee3" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "EquivalentExchange3"
2013-12-13 10:45:03 +01:00
minecraft {
version = config.minecraft_version + "-" + config.forge_version
replaceIn "reference/Reference.java"
replace "@MOD_VERSION@", "${config.mod_version}.${System.getenv("BUILD_NUMBER") ?: 0}"
2015-05-05 16:41:44 +02:00
if (project.hasProperty("ee3_sha1_signature")) {
replace "@FINGERPRINT@", project.ee3_sha1_signature
}
replaceIn "api/package-info.java"
replace "@API_VERSION@", config.api_version
replaceIn "api/array/package-info.java"
replace "@API_VERSION@", config.api_version
replaceIn "api/event/package-info.java"
replace "@API_VERSION@", config.api_version
replaceIn "api/exchange/package-info.java"
replace "@API_VERSION@", config.api_version
replaceIn "api/knowledge/package-info.java"
replace "@API_VERSION@", config.api_version
replaceIn "api/recipe/package-info.java"
replace "@API_VERSION@", config.api_version
replaceIn "api/util/package-info.java"
replace "@API_VERSION@", config.api_version
}
version = "${config.minecraft_version}-${config.mod_version}.${System.getenv("BUILD_NUMBER") ?: 0}"
processResources {
// exclude xcf files, as they are for development only
exclude '**/*.xcf'
2023-01-03 18:07:26 +01:00
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
2023-01-03 18:07:26 +01:00
filesMatching('mcmod.info') {
expand 'version':project.version, 'mcversion':project.minecraft.version
}
}
uploadArchives {
repositories {
mavenDeployer {
if (project.hasProperty("forgemaven_url")) {
logger.info('Publishing to files server')
repository(url: project.forgemaven_url) {
authentication(userName: project.forgemaven_username, password: project.forgemaven_password)
}
}
pom {
groupId = project.group
version = project.version
artifactId = project.archivesBaseName
}
pom.project {
name project.archivesBaseName
packaging 'jar'
description 'Equivalent Exchange 3'
url 'https://github.com/pahimar/Equivalent-Exchange-3/'
2014-07-18 03:38:41 +02:00
scm {
url 'https://github.com/pahimar/Equivalent-Exchange-3/'
connection 'scm:git:git://github.com/pahimar/Equivalent-Exchange-3.git'
developerConnection 'scm:git:git@github.com/pahimar/Equivalent-Exchange-3.git'
}
2014-07-18 03:38:41 +02:00
issueManagement {
system 'github'
url 'https://github.com/pahimar/Equivalent-Exchange-3/issues'
}
2014-07-18 03:38:41 +02:00
licenses {
license {
name 'GNU Lesser General Public License 3.0'
url 'https://www.gnu.org/licenses/lgpl-3.0.txt'
distribution 'repo'
}
}
2014-07-18 03:38:41 +02:00
developers {
developer {
id 'Pahimar'
name 'Pahimar'
roles {
role 'developer'
}
}
}
}
}
}
2014-09-04 19:09:07 +02:00
}