68 lines
1.3 KiB
Groovy
68 lines
1.3 KiB
Groovy
plugins {
|
|
id 'org.taumc.moddev'
|
|
}
|
|
|
|
sourceSets {
|
|
plugin
|
|
}
|
|
|
|
def pluginJar = tasks.register("pluginJar", Jar) {
|
|
from(sourceSets.plugin.output)
|
|
archiveClassifier = "plugin"
|
|
manifest {
|
|
attributes(
|
|
'FMLModType': 'LIBRARY',
|
|
'Automatic-Module-Name': 'jij.plugin'
|
|
)
|
|
}
|
|
}
|
|
|
|
evaluationDependsOn(":coremod") // Because of the sourceset reference
|
|
|
|
dependencies {
|
|
implementation project(":coremod")
|
|
implementation files(sourceSets.plugin.output)
|
|
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.2'
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
jarJar(project(":coremod"))
|
|
jarJar(files(pluginJar))
|
|
|
|
jarJar("org.commonmark:commonmark") {
|
|
version {
|
|
strictly '[0.1, 1.0)'
|
|
prefer '0.21.0'
|
|
}
|
|
}
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
neoForge {
|
|
version = project.neoforge_version
|
|
|
|
runs {
|
|
data {
|
|
clientData()
|
|
}
|
|
}
|
|
|
|
mods {
|
|
jijtest {
|
|
sourceSet sourceSets.main
|
|
}
|
|
coremod {
|
|
sourceSet project(":coremod").sourceSets.main
|
|
}
|
|
plugin {
|
|
sourceSet sourceSets.plugin
|
|
}
|
|
}
|
|
|
|
unitTest {
|
|
enable()
|
|
testedMod = mods.jijtest
|
|
}
|
|
}
|