Skip to content

Commit

Permalink
Moved Sedna etc. to separate mod we depend on.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnuecke committed Jan 9, 2021
1 parent 25444a5 commit bbfa14b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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
of this software and associated documentation files (the "Software"), to deal
Expand Down
25 changes: 9 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ archivesBaseName = "${mod_name}-MC${minecraft_version}"
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
compileJava.sourceCompatibility = compileJava.targetCompatibility = JavaVersion.VERSION_1_8

configurations {
embed
implementation.extendsFrom embed
}

repositories {
mavenCentral()
maven { url "http://dvs1.progwml6.com/files/maven" } // JEI
Expand All @@ -60,13 +55,17 @@ dependencies {

compileOnly 'org.jetbrains:annotations:16.0.2'

embed('li.cil.ceres:ceres:0.0.2+') { transitive = false }
embed('li.cil.sedna:sedna:0.0.1+') { transitive = false }
embed('li.cil.sedna:sedna-buildroot:0.0.1+') { transitive = false }
implementation 'li.cil.ceres:ceres:0.0.2+18'
implementation 'li.cil.sedna:sedna:0.0.1+83'
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")
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.junit.jupiter:junit-jupiter-api:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
Expand All @@ -77,13 +76,13 @@ processResources {
include 'META-INF/mods.toml'

expand([
'mod_id' : mod_id,
'mod_version' : version,
'mod_name' : mod_name,
'mod_url' : mod_url,
'mod_issues_url' : mod_issues_url,
'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
])
}
}
Expand Down Expand Up @@ -139,12 +138,6 @@ minecraft {
jar {
finalizedBy 'reobfJar'

configurations.embed.each {
from(project.zipTree(it)) {
exclude 'META-INF', 'META-INF/**'
}
}

manifest {
attributes([
"Specification-Title" : "oc2",
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ version_major=0
version_minor=0
version_patch=1

oc2_sedna_version_min=0.0.1

jei_version=7.6.0.58

curse.project.id=0
Expand Down
12 changes: 9 additions & 3 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ issueTrackerURL = "${mod_issues_url}"
license = "MIT"

[[mods]]
modId = "${mod_id}"
modId = "oc2"
version = "${mod_version}"
displayName = "${mod_name}"
displayURL = "${mod_url}"
Expand All @@ -14,15 +14,21 @@ description = '''
Modern computers for the modern player.
'''

[[dependencies.scannable]]
[[dependencies.oc2]]
modId = "forge"
mandatory = true
versionRange = "[${forge_version_min},)"
ordering = "NONE"
side = "BOTH"
[[dependencies.scannable]]
[[dependencies.oc2]]
modId = "minecraft"
mandatory = true
versionRange = "[${minecraft_version_min}]"
ordering = "NONE"
side = "BOTH"
[[dependencies.oc2]]
modId = "oc2-sedna"
mandatory = true
versionRange = "[${oc2_sedna_version_min}]"
ordering = "NONE"
side = "BOTH"

0 comments on commit bbfa14b

Please sign in to comment.