HexCasting/Common/build.gradle

80 lines
2.2 KiB
Groovy
Raw Normal View History

2022-04-25 16:40:32 +02:00
plugins {
id 'org.spongepowered.gradle.vanilla' version '0.2.1-SNAPSHOT'
}
2022-05-15 23:48:18 +02:00
archivesBaseName = getArtifactID("common")
2022-04-25 16:40:32 +02:00
minecraft {
version(minecraftVersion)
2022-04-25 16:40:32 +02:00
runs {
if (project.hasProperty('common_runs_enabled') ? project.findProperty('common_runs_enabled').toBoolean() : true) {
server(project.hasProperty('common_server_run_name') ? project.findProperty('common_server_run_name') : 'vanilla_server') {
workingDirectory(this.file("run"))
}
client(project.hasProperty('common_client_run_name') ? project.findProperty('common_client_run_name') : 'vanilla_client') {
workingDirectory(this.file("run"))
}
}
}
}
dependencies {
compileOnly group: 'org.spongepowered', name: 'mixin', version: '0.8.5'
implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.1'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compileOnly "at.petra-k.paucal:paucal-common-$minecraftVersion:$paucalVersion"
compileOnly "vazkii.patchouli:Patchouli-xplat:$minecraftVersion-$patchouliVersion"
2022-04-25 16:40:32 +02:00
}
2022-05-15 23:48:18 +02:00
sourceSets {
main.kotlin.srcDirs += 'src/main/java'
}
2022-04-25 16:40:32 +02:00
processResources {
def buildProps = project.properties.clone()
filesMatching(['pack.mcmeta']) {
expand buildProps
}
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId project.group
artifactId project.archivesBaseName
version project.version
from components.java
}
}
repositories {
maven {
url "file://" + System.getenv("local_maven")
}
}
}
repositories {
mavenCentral()
// If you have mod jar dependencies in ./libs, you can declare them as a repository like so:
// flatDir {
// dir 'libs'
// }
maven { url 'https://maven.blamejared.com' }
maven {
// location of the maven that hosts JEI files
name = "Progwml6 maven"
url = "https://dvs1.progwml6.com/files/maven/"
}
maven {
// location of a maven mirror for JEI files, as a fallback
name = "ModMaven"
url = "https://modmaven.dev"
}
}