ActuallyAdditions/build.gradle
canitzp 335e121ff2
Optimize and updated Dependencies and fully added Tiny torch (#1343)
* Dependency updates

* Tiny torch implementation

Co-authored-by: canitzp <canitzp@gmail.com>
2020-09-06 22:32:10 -04:00

142 lines
No EOL
3.7 KiB
Groovy

buildscript {
repositories {
jcenter()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
}
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
apply plugin: 'idea'
version = "2.0.0"
group = "de.ellpeck.actuallyadditions"
archivesBaseName = "ActuallyAdditions-1.14.4"
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
minecraft {
mappings channel: "stable", version: "58-1.14.4"
runs {
client = {
properties 'forge.logging.markers': ''
properties 'forge.logging.console.level': 'debug'
workingDirectory project.file('run/client')
source sourceSets.main
}
server = {
properties 'forge.logging.markers': ''
properties 'forge.logging.console.level': 'debug'
workingDirectory project.file('run/server')
source sourceSets.main
}
data = {
workingDirectory project.file("run/data").canonicalPath
args "--mod", "actuallyadditions", "--all", "--output", "\"" + file("src/generated/resources").toString() + "\"", "--validate", "--existing", "\"" + sourceSets.main.resources.srcDirs[0] + "\""
mods {
actuallyadditions {
source sourceSets.main
}
}
}
}
}
repositories {
maven {
url "https://dvs1.progwml6.com/files/maven"
}
//maven {
// url "https://tehnut.info/maven"
//}
}
dependencies {
minecraft 'net.minecraftforge:forge:1.14.4-28.2.0'
compile fg.deobf('mezz.jei:jei-1.14.4:6.0.1.30')
//compile fg.deobf('mcp.mobius.waila:Hwyla:1.10.6-B67_1.14.4')
//compile fileTree(dir: 'libs', include: '*.jar')
}
jar {
manifest {
attributes(["Specification-Title" : "actuallyadditions",
"Specification-Vendor" : "Ellpeck",
"Specification-Version" : "24.0",
"Implementation-Title" : project.name,
"Implementation-Version" : "${version}",
"Implementation-Vendor" : "Ellpeck",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],)
}
}
/*TODO: Re-evaluate
def normalManifest = {
attributes(
"Built-On": "1.14.4",
"Implementation-Title": "ActuallyAdditions",
"Implementation-Version": project.version,
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
)
}
jar {
exclude(".cache")
manifest normalManifest
}
task deobfJar(type: Jar) {
from sourceSets.main.output
from sourceSets.main.java
classifier = 'dev'
exclude(".cache")
manifest normalManifest
}
task apiJar(type: Jar) {
from sourceSets.main.output
from sourceSets.main.java
classifier = 'api'
include 'de/ellpeck/actuallyadditions/api/**'
}
javadoc {
include 'de/ellpeck/actuallyadditions/api/**'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from 'build/docs/javadoc'
classifier 'javadoc'
}
task sourcesJar(type: Jar) {
from sourceSets.main.java
classifier = 'sources'
}
apply plugin: 'maven-publish'
publishing {
publications {
mavenJava(MavenPublication) {
artifact jar
artifact apiJar
artifact javadocJar
artifact sourcesJar
artifact deobfJar
}
}
repositories {
maven {
url "file:///srv/nginx/maven"
}
}
}
*/