pccompat/build.gradle

106 lines
2.7 KiB
Groovy
Raw Normal View History

2023-06-13 17:33:30 +02:00
buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "https://maven.minecraftforge.net/"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
2023-06-18 15:13:23 +02:00
classpath ("com.anatawa12.forge:ForgeGradle:1.2-1.0.+") {
2023-06-13 17:33:30 +02:00
changing = true
}
}
}
2023-06-18 15:13:23 +02:00
apply plugin: "forge"
apply plugin: "maven-publish"
2023-06-13 17:33:30 +02:00
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
version = "1.0"
2023-06-13 20:04:55 +02:00
group= "net.anvilcraft"
archivesBaseName = "pccompat"
2023-06-13 17:33:30 +02:00
minecraft {
version = "1.7.10-10.13.4.1614-1.7.10"
runDir = "run"
}
repositories {
maven { url = "https://maven.tilera.xyz" }
2023-06-13 20:04:55 +02:00
maven {
url = "https://s3.tilera.xyz/cdn/minecraft/libs/"
metadataSources { artifact() }
}
2023-06-18 15:13:23 +02:00
maven {
name "central"
url "https://maven.thorfusion.com/artifactory/central/"
}
2023-06-13 17:33:30 +02:00
}
dependencies {
implementation "appeng:appliedenergistics2:rv3-beta-21:dev"
2023-06-18 15:13:23 +02:00
implementation "codechicken:CodeChickenCore:1.7.10-1.0.7.48:dev"
implementation "codechicken:CodeChickenLib:1.7.10-1.1.3.141:dev"
implementation "codechicken:NotEnoughItems:1.7.10-1.0.5.120:dev"
implementation "cofh:CoFHCore:[1.7.10]3.1.4-329:dev"
implementation "com.eloraam.redpower:redpower:2.0pr10-dirty:deobf"
implementation "com.hbm:HBM-NTM:1.0.27_X4627:deobf"
2023-06-18 15:13:23 +02:00
implementation "covers1624:PowerConverters:1.7.10-2.11:deobf"
implementation "universalelectricity:basiccomponents:2.0.1:deobf"
implementation "universalelectricity:universalelectricity:5.2.2:deobf"
2023-06-13 17:33:30 +02:00
}
processResources {
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
2023-06-18 15:13:23 +02:00
filesMatching("mcmod.info") {
expand "version":project.version, "mcversion":project.minecraft.version
2023-06-13 17:33:30 +02:00
}
}
task deobfJar(type: Jar) {
from sourceSets.main.output
2023-06-18 15:13:23 +02:00
classifier = "deobf"
2023-06-13 17:33:30 +02:00
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
2023-06-18 15:13:23 +02:00
classifier = "sources"
2023-06-13 17:33:30 +02:00
}
publishing {
2023-06-18 15:13:23 +02:00
tasks.publish.dependsOn "build"
2023-06-13 17:33:30 +02:00
publications {
mavenJava(MavenPublication) {
artifactId = project.archivesBaseName
artifact deobfJar
artifact sourcesJar
artifact jar
}
}
repositories {
2023-06-18 15:13:23 +02:00
if (project.hasProperty("mvnURL")) {
2023-06-13 17:33:30 +02:00
maven {
credentials {
username findProperty("mvnUsername")
password findProperty("mvnPassword")
}
url = findProperty("mvnURL")
}
}
else {
mavenLocal()
}
}
2023-06-13 20:04:55 +02:00
}