2021-04-01 14:32:58 +02:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven {
|
|
|
|
name = "forge"
|
|
|
|
url = "https://files.minecraftforge.net/maven"
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = "sonatype"
|
|
|
|
url = "https://oss.sonatype.org/content/repositories/snapshots/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
2024-04-13 15:15:48 +02:00
|
|
|
classpath ('com.anatawa12.forge:ForgeGradle:1.2-1.0.+') {
|
|
|
|
changing = true
|
|
|
|
}
|
2021-04-01 14:32:58 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'forge'
|
2024-04-13 15:15:48 +02:00
|
|
|
apply plugin: 'maven-publish'
|
2021-04-01 14:32:58 +02:00
|
|
|
|
|
|
|
version = "1.0"
|
|
|
|
group= "ley.modding.dartcraft"
|
|
|
|
archivesBaseName = "dartcraft"
|
|
|
|
|
|
|
|
minecraft {
|
|
|
|
version = "1.7.10-10.13.4.1614-1.7.10"
|
|
|
|
runDir = "run"
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
}
|
|
|
|
|
2024-04-13 15:15:48 +02:00
|
|
|
processResources {
|
2021-04-01 14:32:58 +02:00
|
|
|
inputs.property "version", project.version
|
|
|
|
inputs.property "mcversion", project.minecraft.version
|
|
|
|
|
2024-04-13 15:15:48 +02:00
|
|
|
filesMatching('mcmod.info') {
|
2021-04-01 14:32:58 +02:00
|
|
|
expand 'version':project.version, 'mcversion':project.minecraft.version
|
|
|
|
}
|
2024-04-13 15:15:48 +02: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()
|
|
|
|
}
|
2021-04-01 14:32:58 +02:00
|
|
|
}
|
|
|
|
}
|