2020-04-11 04:07:34 +08:00
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'
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
2020-04-15 02:55:33 +08:00
version = '1.1.2-1.14.4'
2020-04-14 23:50:11 +08:00
group = 'szum123321.textile_backup'
2020-04-11 04:07:34 +08:00
archivesBaseName = 'textile_backup[FORGE]'
sourceCompatibility = targetCompatibility = compileJava . sourceCompatibility = compileJava . targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
minecraft {
mappings channel: 'snapshot' , version: '20190719-1.14.3'
runs {
client {
workingDirectory project . file ( 'run' )
// Recommended logging data for a userdev environment
property 'forge.logging.markers' , 'SCAN,REGISTRIES,REGISTRYDUMP'
// Recommended logging level for the console
property 'forge.logging.console.level' , 'debug'
mods {
examplemod {
source sourceSets . main
}
}
}
server {
workingDirectory project . file ( 'run' )
// Recommended logging data for a userdev environment
property 'forge.logging.markers' , 'SCAN,REGISTRIES,REGISTRYDUMP'
// Recommended logging level for the console
property 'forge.logging.console.level' , 'debug'
mods {
examplemod {
source sourceSets . main
}
}
}
data {
workingDirectory project . file ( 'run' )
// Recommended logging data for a userdev environment
property 'forge.logging.markers' , 'SCAN,REGISTRIES,REGISTRYDUMP'
// Recommended logging level for the console
property 'forge.logging.console.level' , 'debug'
args '--mod' , 'examplemod' , '--all' , '--output' , file ( 'src/generated/resources/' )
mods {
examplemod {
source sourceSets . main
}
}
}
}
}
2020-04-11 18:33:41 +08:00
repositories {
mavenCentral ( )
}
2020-04-15 02:55:33 +08:00
configurations {
shade
compile . extendsFrom shade
}
2020-04-11 04:07:34 +08:00
dependencies {
minecraft 'net.minecraftforge:forge:1.14.4-28.2.0'
compile "blue.endless:jankson:1.2.0"
2020-04-11 18:33:41 +08:00
shade "blue.endless:jankson:1.2.0"
2020-04-11 04:07:34 +08:00
}
// Example for how to get properties into the manifest for reading by the runtime..
jar {
manifest {
attributes ( [
"Specification-Title" : "Textile Backup" ,
"Specification-Vendor" : "Szum123321" ,
"Specification-Version" : "1" , // We are version 1 of ourselves
"Implementation-Title" : project . name ,
"Implementation-Version" : "${version}" ,
"Implementation-Vendor" : "Szum123321" ,
"Implementation-Timestamp" : new Date ( ) . format ( "yyyy-MM-dd'T'HH:mm:ssZ" )
] )
}
2020-04-11 18:33:41 +08:00
configurations . shade . each { dep - >
from ( project . zipTree ( dep ) ) {
exclude 'META-INF' , 'META-INF/**'
}
}
2020-04-11 04:07:34 +08:00
}
def reobfFile = file ( "$buildDir/reobfJar/output.jar" )
def reobfArtifact = artifacts . add ( 'default' , reobfFile ) {
type 'jar'
builtBy 'reobfJar'
}
publishing {
publications {
mavenJava ( MavenPublication ) {
artifact reobfArtifact
}
}
repositories {
maven {
url "file:///${project.projectDir}/mcmodsrepo"
}
}
2020-04-10 17:07:57 +08:00
}