2022-04-25 16:40:32 +02:00
|
|
|
plugins {
|
|
|
|
id 'org.spongepowered.gradle.vanilla' version '0.2.1-SNAPSHOT'
|
2023-04-24 18:15:44 +02:00
|
|
|
id "at.petra-k.PKSubprojPlugin"
|
2022-04-25 16:40:32 +02:00
|
|
|
}
|
|
|
|
|
2023-04-24 18:15:44 +02:00
|
|
|
pkSubproj {
|
|
|
|
platform "common"
|
|
|
|
}
|
2022-04-25 16:40:32 +02:00
|
|
|
|
|
|
|
minecraft {
|
|
|
|
version(minecraftVersion)
|
2022-06-02 16:57:18 +02:00
|
|
|
accessWideners 'src/main/resources/hexplat.accesswidener'
|
2022-04-25 16:40:32 +02:00
|
|
|
}
|
|
|
|
|
2022-05-21 23:11:38 +02:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
|
|
|
|
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"
|
|
|
|
}
|
2023-06-14 07:32:59 +02:00
|
|
|
|
|
|
|
// If you have mod jar dependencies in ./libs, you can declare them as a repository like so:
|
|
|
|
flatDir {
|
|
|
|
dir 'libs'
|
|
|
|
}
|
2022-05-21 23:11:38 +02:00
|
|
|
}
|
|
|
|
|
2022-04-25 16:40:32 +02:00
|
|
|
dependencies {
|
|
|
|
compileOnly group: 'org.spongepowered', name: 'mixin', version: '0.8.5'
|
|
|
|
implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.1'
|
2022-05-06 18:40:33 +02:00
|
|
|
|
2023-06-14 07:32:59 +02:00
|
|
|
compileOnly "${modID}:paucal-common-$minecraftVersion:$paucalVersion"
|
2023-06-23 07:43:04 +02:00
|
|
|
compileOnly "vazkii.patchouli:Patchouli-xplat:$minecraftVersion-$patchouliVersion-SNAPSHOT"
|
2022-05-16 02:56:15 +02:00
|
|
|
|
2022-08-18 23:06:06 +02:00
|
|
|
compileOnly "org.jetbrains:annotations:$jetbrainsAnnotationsVersion"
|
|
|
|
testCompileOnly "org.jetbrains:annotations:$jetbrainsAnnotationsVersion"
|
|
|
|
|
2022-05-16 02:56:15 +02:00
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.1'
|
|
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.6.1'
|
2022-04-25 16:40:32 +02:00
|
|
|
}
|
|
|
|
|
2022-05-16 02:56:15 +02:00
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
2022-05-15 23:48:18 +02:00
|
|
|
}
|
|
|
|
|
2022-04-25 16:40:32 +02:00
|
|
|
processResources {
|
|
|
|
def buildProps = project.properties.clone()
|
|
|
|
|
|
|
|
filesMatching(['pack.mcmeta']) {
|
|
|
|
expand buildProps
|
|
|
|
}
|
|
|
|
}
|