Moved Sedna etc. to separate mod we depend on.

This commit is contained in:
Florian Nücke
2021-01-09 20:10:40 +01:00
parent 25444a5382
commit bbfa14bce0
4 changed files with 21 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2020 Florian "Sangar" Nücke Copyright (c) 2020-2021 Florian "Sangar" Nücke
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@@ -44,11 +44,6 @@ archivesBaseName = "${mod_name}-MC${minecraft_version}"
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
compileJava.sourceCompatibility = compileJava.targetCompatibility = JavaVersion.VERSION_1_8 compileJava.sourceCompatibility = compileJava.targetCompatibility = JavaVersion.VERSION_1_8
configurations {
embed
implementation.extendsFrom embed
}
repositories { repositories {
mavenCentral() mavenCentral()
maven { url "http://dvs1.progwml6.com/files/maven" } // JEI maven { url "http://dvs1.progwml6.com/files/maven" } // JEI
@@ -60,13 +55,17 @@ dependencies {
compileOnly 'org.jetbrains:annotations:16.0.2' compileOnly 'org.jetbrains:annotations:16.0.2'
embed('li.cil.ceres:ceres:0.0.2+') { transitive = false } implementation 'li.cil.ceres:ceres:0.0.2+18'
embed('li.cil.sedna:sedna:0.0.1+') { transitive = false } implementation 'li.cil.sedna:sedna:0.0.1+83'
embed('li.cil.sedna:sedna-buildroot:0.0.1+') { transitive = false } implementation 'li.cil.sedna:sedna-buildroot:0.0.1+'
implementation 'li.cil.oc2:oc2-sedna:0.0.1+'
compileOnly fg.deobf("mezz.jei:jei-${minecraft_version}:${jei_version}:api") compileOnly fg.deobf("mezz.jei:jei-${minecraft_version}:${jei_version}:api")
runtimeOnly fg.deobf("mezz.jei:jei-${minecraft_version}:${jei_version}") runtimeOnly fg.deobf("mezz.jei:jei-${minecraft_version}:${jei_version}")
testImplementation 'li.cil.ceres:ceres:0.0.2+18'
testImplementation 'li.cil.sedna:sedna:0.0.1+83'
testImplementation "org.mockito:mockito-core:2.+" testImplementation "org.mockito:mockito-core:2.+"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
@@ -77,13 +76,13 @@ processResources {
include 'META-INF/mods.toml' include 'META-INF/mods.toml'
expand([ expand([
'mod_id' : mod_id,
'mod_version' : version, 'mod_version' : version,
'mod_name' : mod_name, 'mod_name' : mod_name,
'mod_url' : mod_url, 'mod_url' : mod_url,
'mod_issues_url' : mod_issues_url, 'mod_issues_url' : mod_issues_url,
'forge_version_min' : forge_version_min, 'forge_version_min' : forge_version_min,
'minecraft_version_min': minecraft_version_min 'minecraft_version_min': minecraft_version_min,
'oc2_sedna_version_min': oc2_sedna_version_min
]) ])
} }
} }
@@ -139,12 +138,6 @@ minecraft {
jar { jar {
finalizedBy 'reobfJar' finalizedBy 'reobfJar'
configurations.embed.each {
from(project.zipTree(it)) {
exclude 'META-INF', 'META-INF/**'
}
}
manifest { manifest {
attributes([ attributes([
"Specification-Title" : "oc2", "Specification-Title" : "oc2",

View File

@@ -19,6 +19,8 @@ version_major=0
version_minor=0 version_minor=0
version_patch=1 version_patch=1
oc2_sedna_version_min=0.0.1
jei_version=7.6.0.58 jei_version=7.6.0.58
curse.project.id=0 curse.project.id=0

View File

@@ -4,7 +4,7 @@ issueTrackerURL = "${mod_issues_url}"
license = "MIT" license = "MIT"
[[mods]] [[mods]]
modId = "${mod_id}" modId = "oc2"
version = "${mod_version}" version = "${mod_version}"
displayName = "${mod_name}" displayName = "${mod_name}"
displayURL = "${mod_url}" displayURL = "${mod_url}"
@@ -14,15 +14,21 @@ description = '''
Modern computers for the modern player. Modern computers for the modern player.
''' '''
[[dependencies.scannable]] [[dependencies.oc2]]
modId = "forge" modId = "forge"
mandatory = true mandatory = true
versionRange = "[${forge_version_min},)" versionRange = "[${forge_version_min},)"
ordering = "NONE" ordering = "NONE"
side = "BOTH" side = "BOTH"
[[dependencies.scannable]] [[dependencies.oc2]]
modId = "minecraft" modId = "minecraft"
mandatory = true mandatory = true
versionRange = "[${minecraft_version_min}]" versionRange = "[${minecraft_version_min}]"
ordering = "NONE" ordering = "NONE"
side = "BOTH" side = "BOTH"
[[dependencies.oc2]]
modId = "oc2-sedna"
mandatory = true
versionRange = "[${oc2_sedna_version_min}]"
ordering = "NONE"
side = "BOTH"