mffs/build.gradle

116 lines
2.9 KiB
Groovy
Raw Permalink Normal View History

2022-10-24 18:21:26 +02:00
buildscript {
repositories {
mavenCentral()
2022-11-27 10:52:24 +01:00
maven { url 'https://maven.tilera.xyz' }
2022-10-24 18:21:26 +02:00
maven {
name = "forge"
2022-11-27 10:52:24 +01:00
url = "https://maven.minecraftforge.net/"
2022-10-24 18:21:26 +02:00
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
2022-12-10 11:10:52 +01:00
classpath ('com.anatawa12.forge:ForgeGradle:1.2-1.0.+') {
changing = true
}
2022-10-24 18:21:26 +02:00
}
}
apply plugin: 'forge'
2022-12-10 11:10:52 +01:00
apply plugin: 'maven-publish'
2022-10-24 18:21:26 +02:00
2022-10-28 16:20:12 +02:00
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceSets {
api {}
}
2023-02-28 19:30:12 +01:00
version = "1.0.8"
2022-10-28 16:20:12 +02:00
group = "universalelectricity"
archivesBaseName = "mffs"
jar {
manifest {
attributes "FMLAT": "mffs_at.cfg"
}
}
2022-10-24 18:21:26 +02:00
minecraft {
version = "1.7.10-10.13.4.1614-1.7.10"
runDir = "run"
2022-12-10 11:10:52 +01:00
replaceIn "mffs/ModularForceFieldSystem.java"
replace "{VERSION}", project.version
2022-10-24 18:21:26 +02:00
}
2022-10-24 18:23:17 +02:00
repositories {
maven { url = "https://maven.tilera.xyz" }
2022-11-27 10:52:24 +01:00
maven {
name = "ic2c"
url = "https://maven.ic2.player.to/"
metadataSources {
artifact()
}
}
2022-10-24 18:23:17 +02:00
}
2022-10-24 18:21:26 +02:00
2022-10-24 18:23:17 +02:00
dependencies {
2022-12-10 11:10:52 +01:00
implementation "universalelectricity:basiccomponents:2.0.0:deobf"
implementation "universalelectricity:universalelectricity:5.1.0:deobf"
2022-11-27 10:52:24 +01:00
implementation 'net.industrial-craft:industrialcraft-2:2.2.827-experimental:dev'
2023-02-10 17:40:18 +01:00
implementation 'dan200:ComputerCraft:1.75:deobf'
2022-10-24 18:21:26 +02:00
}
2022-11-27 10:52:24 +01:00
processResources {
// This will ensure that this task is redone when the versions change.
2022-10-24 18:21:26 +02:00
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
2022-11-27 10:52:24 +01:00
// Replace values in only mcmod.info.
filesMatching('mcmod.info') {
// Replace version and mcversion.
2022-10-24 18:21:26 +02:00
expand 'version':project.version, 'mcversion':project.minecraft.version
}
}
2022-12-10 11:10:52 +01:00
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'deobf'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
publishing {
tasks.publish.dependsOn 'build'
publications {
mavenJava(MavenPublication) {
artifactId = project.archivesBaseName
artifact deobfJar
artifact sourcesJar
artifact jar
}
}
repositories {
if (project.hasProperty('mvnURL')) {
maven {
credentials {
username findProperty("mvnUsername")
password findProperty("mvnPassword")
}
url = findProperty("mvnURL")
}
}
else {
mavenLocal()
}
}
2023-02-10 17:40:18 +01:00
}