mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
144 lines
No EOL
3.9 KiB
Groovy
144 lines
No EOL
3.9 KiB
Groovy
buildscript {
|
|
repositories {
|
|
maven { url = 'https://files.minecraftforge.net/maven' }
|
|
jcenter()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
|
|
}
|
|
}
|
|
|
|
apply plugin: 'net.minecraftforge.gradle'
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'idea'
|
|
apply plugin: 'maven-publish'
|
|
|
|
version = mod_version
|
|
group = "de.ellpeck.actuallyadditions"
|
|
archivesBaseName = "actuallyadditions-${mc_version}"
|
|
|
|
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
|
|
|
|
sourceSets {
|
|
main.resources.srcDirs += 'src/generated/resources'
|
|
}
|
|
|
|
minecraft {
|
|
mappings channel: "snapshot", version: mcp_version
|
|
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
|
|
|
|
runs {
|
|
client {
|
|
properties 'forge.logging.markers': ''
|
|
properties 'forge.logging.console.level': 'debug'
|
|
workingDirectory project.file('run')
|
|
mods {
|
|
actuallyadditions {
|
|
source sourceSets.main
|
|
}
|
|
}
|
|
}
|
|
server {
|
|
properties 'forge.logging.markers': ''
|
|
properties 'forge.logging.console.level': 'debug'
|
|
workingDirectory project.file('run/server')
|
|
mods {
|
|
actuallyadditions {
|
|
source sourceSets.main
|
|
}
|
|
}
|
|
}
|
|
data {
|
|
workingDirectory project.file('run/data')
|
|
args "--mod", "actuallyadditions", "--all", "--output", file('src/generated/resources/'), "--existing", file('src/main/resources')
|
|
mods {
|
|
actuallyadditions {
|
|
source sourceSets.main
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
name = "Progwml6 maven / JEI Maven"
|
|
url = "https://dvs1.progwml6.com/files/maven/"
|
|
}
|
|
maven {
|
|
name = "ModMaven / JEI Mirror"
|
|
url = "https://modmaven.k-4u.nl"
|
|
}
|
|
maven {
|
|
url = "https://www.cursemaven.com"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
minecraft "net.minecraftforge:forge:${mc_version}-${forge_version}"
|
|
|
|
// compile against the JEI API but do not include it at runtime
|
|
compileOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}:api")
|
|
// at runtime, use the full JEI jar
|
|
runtimeOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}")
|
|
|
|
compile "curse.maven:fastworkbench:3003114"
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes(["Specification-Title": "actuallyadditions",
|
|
"Specification-Vendor": "Ellpeck",
|
|
"Specification-Version": mod_version,
|
|
"Implementation-Title": project.name,
|
|
"Implementation-Version": "${version}",
|
|
"Implementation-Vendor" :"Ellpeck",
|
|
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],)
|
|
}
|
|
}
|
|
|
|
task deobfJar(type: Jar) {
|
|
from(sourceSets.main.output)
|
|
archiveName = "${baseName}-${version}-deobf.${extension}"
|
|
}
|
|
|
|
task sourcesJar(type: Jar) {
|
|
from(sourceSets.main.allSource)
|
|
archiveName = "${baseName}-${version}-sources.${extension}"
|
|
}
|
|
|
|
artifacts {
|
|
archives deobfJar
|
|
archives sourcesJar
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
mavenJava(MavenPublication) {
|
|
groupId project.group
|
|
artifactId project.archivesBaseName
|
|
version project.version
|
|
from components.java
|
|
|
|
artifact deobfJar {
|
|
classifier 'deobf'
|
|
}
|
|
|
|
artifact sourcesJar {
|
|
classifier 'sources'
|
|
}
|
|
|
|
pom.withXml {
|
|
def node = asNode()
|
|
if (node.dependencies.size() > 0)
|
|
node.remove(node.dependencies)
|
|
}
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
url "file://" + System.getenv("local_maven")
|
|
}
|
|
}
|
|
} |