Skip to content

Commit

Permalink
Switch back to ancient scala 2.11 version
Browse files Browse the repository at this point in the history
  • Loading branch information
kappa-maintainer committed Apr 1, 2024
1 parent 8de62a4 commit 2436c5d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
24 changes: 17 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,15 @@ tasks.injectTags.outputClassName.set("${maven_group}.${project.mod_id}.Tags")

repositories {
flatDir { dir 'libs' }
maven {
url 'https://maven.minecraftforge.net'
metadataSources {
artifact()
}
}
maven {
url 'https://repo.papermc.io/'
}
maven {
name 'CleanroomMC Maven'
url 'https://maven.cleanroommc.com'
Expand All @@ -105,7 +114,7 @@ repositories {
name = 'BlameJared Maven'
}

mavenLocal() // Must be last for caching to work
mavenCentral() // Must be last for caching to work
}

dependencies {
Expand Down Expand Up @@ -135,14 +144,14 @@ dependencies {
implementation "com.google.guava:guava:33.0.0-jre"

embed 'org.scala-lang:scala-actors-migration_2.11:1.1.0'
embed 'org.scala-lang:scala-compiler:2.11.12'
embed 'org.scala-lang:scala-compiler:2.11.1'
// We change the version so old installs don't break, as our clone of the jar is different the maven central
embed 'org.scala-lang.plugins:scala-continuations-library_2.11:1.0.3'
embed 'org.scala-lang.plugins:scala-continuations-plugin_2.11.11:1.0.3'
embed 'org.scala-lang.plugins:scala-continuations-library_2.11:1.0.2_mc'
embed 'org.scala-lang.plugins:scala-continuations-plugin_2.11.1:1.0.2_mc'

embed 'org.scala-lang:scala-library:2.11.12'
embed 'org.scala-lang.modules:scala-parser-combinators_2.11:2.2.0'
embed 'org.scala-lang:scala-reflect:2.11.12'
embed 'org.scala-lang:scala-library:2.11.1'
embed 'org.scala-lang:scala-parser-combinators_2.11:1.0.1'
embed 'org.scala-lang:scala-reflect:2.11.1'
embed 'org.scala-lang:scala-swing_2.11:1.0.1'
embed 'org.scala-lang:scala-xml_2.11:1.0.2'
}
Expand Down Expand Up @@ -198,6 +207,7 @@ tasks.register('generateMetaFiles') {
}

jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
into('/') {
// Add all of the dependency JARs to the main JAR for later extraction
from configurations.embed
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
org.gradle.jvmargs = -Xmx3G

# Mod Information
mod_version = 2.11.12
mod_version = 2.11.1
maven_group = com.cleanroommc
archives_base_name = scalar
mod_id = scalar
Expand Down

0 comments on commit 2436c5d

Please sign in to comment.