2018-10-13 20:35:18 +02:00
buildscript {
repositories {
2019-10-20 22:16:33 +02:00
maven { url = 'https://files.minecraftforge.net/maven' }
2018-10-13 20:35:18 +02:00
jcenter ( )
2019-10-20 22:16:33 +02:00
mavenCentral ( )
2018-10-13 20:35:18 +02:00
}
dependencies {
2019-10-20 22:16:33 +02:00
classpath group: 'net.minecraftforge.gradle' , name: 'ForgeGradle' , version: '3.+' , changing: true
2018-10-13 20:35:18 +02:00
}
}
2019-10-20 22:16:33 +02:00
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'
2018-10-13 20:35:18 +02:00
2020-01-30 13:47:10 +01:00
version = '20.1'
2019-10-20 22:16:33 +02:00
group = 'de.ellpeck.naturesaura' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'NaturesAura'
2018-10-13 20:35:18 +02:00
2019-10-20 22:16:33 +02:00
sourceCompatibility = targetCompatibility = compileJava . sourceCompatibility = compileJava . targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
2018-10-13 20:35:18 +02:00
2019-10-20 22:16:33 +02:00
minecraft {
2020-01-28 18:08:56 +01:00
mappings channel: 'snapshot' , version: '20200128-1.15.1'
2018-11-14 21:19:32 +01:00
2019-10-20 22:16:33 +02:00
runs {
client {
workingDirectory project . file ( 'run' )
2018-10-13 20:35:18 +02:00
2019-10-20 22:16:33 +02:00
// Recommended logging data for a userdev environment
property 'forge.logging.markers' , 'SCAN,REGISTRIES,REGISTRYDUMP'
2018-10-13 20:35:18 +02:00
2019-10-20 22:16:33 +02:00
// Recommended logging level for the console
2020-01-30 13:45:19 +01:00
property 'forge.logging.console.level' , 'info'
2018-11-23 15:46:08 +01:00
2019-10-20 22:16:33 +02:00
mods {
2020-01-21 23:54:01 +01:00
naturesaura {
2019-10-20 22:16:33 +02:00
source sourceSets . main
}
}
}
2018-11-11 16:50:51 +01:00
2019-10-20 22:16:33 +02:00
server {
workingDirectory project . file ( 'run' )
2018-10-13 20:35:18 +02:00
2019-10-20 22:16:33 +02:00
// Recommended logging data for a userdev environment
property 'forge.logging.markers' , 'SCAN,REGISTRIES,REGISTRYDUMP'
2018-10-13 20:35:18 +02:00
2019-10-20 22:16:33 +02:00
// Recommended logging level for the console
2020-01-30 13:45:19 +01:00
property 'forge.logging.console.level' , 'info'
2018-10-13 20:35:18 +02:00
2019-10-20 22:16:33 +02:00
mods {
2020-01-21 23:54:01 +01:00
naturesaura {
2019-10-20 22:16:33 +02:00
source sourceSets . main
}
}
}
2018-10-13 20:35:18 +02:00
2019-10-20 22:16:33 +02:00
data {
workingDirectory project . file ( 'run' )
2018-10-13 20:35:18 +02:00
2019-10-20 22:16:33 +02:00
// Recommended logging data for a userdev environment
property 'forge.logging.markers' , 'SCAN,REGISTRIES,REGISTRYDUMP'
2018-11-14 21:19:32 +01:00
2019-10-20 22:16:33 +02:00
// Recommended logging level for the console
2020-01-30 13:45:19 +01:00
property 'forge.logging.console.level' , 'info'
2018-11-14 21:19:32 +01:00
2020-01-29 00:40:28 +01:00
args '--mod' , 'naturesaura' , '--all' , '--output' , file ( 'src/generated/resources/' ) , '--existing' , file ( 'src/main/resources/' ) , '--existing' , file ( 'src/generated/resources' )
2018-11-23 15:46:08 +01:00
2019-10-20 22:16:33 +02:00
mods {
2020-01-21 23:54:01 +01:00
naturesaura {
2019-10-20 22:16:33 +02:00
source sourceSets . main
}
}
}
}
2018-11-23 15:36:11 +01:00
}
2020-01-23 16:05:52 +01:00
sourceSets . main . resources {
srcDir 'src/generated/resources'
}
2019-10-20 22:16:33 +02:00
repositories {
maven {
url = "https://dvs1.progwml6.com/files/maven"
}
maven {
url = "https://maven.blamejared.com"
}
2020-01-26 19:26:50 +01:00
maven {
url = "https://maven.theillusivec4.top/"
}
2018-11-23 15:40:30 +01:00
}
2019-10-20 22:16:33 +02:00
dependencies {
2020-01-29 21:36:21 +01:00
minecraft 'net.minecraftforge:forge:1.15.2-31.0.4'
2018-11-23 15:40:30 +01:00
2020-01-28 17:06:30 +01:00
compileOnly fg . deobf ( "mezz.jei:jei-1.15.2:6.0.0.2:api" )
runtimeOnly fg . deobf ( "mezz.jei:jei-1.15.2:6.0.0.2" )
2018-11-23 15:40:30 +01:00
2020-01-28 18:08:56 +01:00
compile fg . deobf ( "com.blamejared.crafttweaker:CraftTweaker-1.15.1:6.0.0.4" )
2020-01-28 17:06:30 +01:00
compile fg . deobf ( "vazkii.patchouli:Patchouli:1.1-25.4" )
2020-01-26 19:26:50 +01:00
2020-01-28 17:06:30 +01:00
runtimeOnly fg . deobf ( "top.theillusivec4.curios:curios:FORGE-1.15.2-2.0-beta2" )
compileOnly fg . deobf ( "top.theillusivec4.curios:curios:FORGE-1.15.2-2.0-beta2:api" )
2018-11-23 15:40:30 +01:00
}
2019-10-20 22:16:33 +02:00
// Example for how to get properties into the manifest for reading by the runtime..
jar {
manifest {
attributes ( [
"Specification-Title" : "naturesaura" ,
"Specification-Vendor" : "Ellpeck" ,
"Specification-Version" : "1" , // We are version 1 of ourselves
"Implementation-Title" : project . name ,
"Implementation-Version" : "${version}" ,
"Implementation-Vendor" : "Ellpeck" ,
"Implementation-Timestamp" : new Date ( ) . format ( "yyyy-MM-dd'T'HH:mm:ssZ" )
] )
}
}
2018-11-23 15:40:30 +01:00
2019-10-20 22:16:33 +02:00
// Example configuration to allow publishing using the maven-publish task
// we define a custom artifact that is sourced from the reobfJar output task
// and then declare that to be published
// Note you'll need to add a repository here
def reobfFile = file ( "$buildDir/reobfJar/output.jar" )
def reobfArtifact = artifacts . add ( 'default' , reobfFile ) {
type 'jar'
builtBy 'reobfJar'
}
2018-11-14 21:19:32 +01:00
publishing {
publications {
mavenJava ( MavenPublication ) {
2019-10-20 22:16:33 +02:00
artifact reobfArtifact
2018-11-14 21:19:32 +01:00
}
}
repositories {
maven {
2019-10-20 22:16:33 +02:00
url "file:///${project.projectDir}/mcmodsrepo"
2018-11-14 21:19:32 +01:00
}
}
2019-10-20 22:16:33 +02:00
}