Skip to content

Commit

Permalink
Remove h2-mvstore library and shadow config for it from build.gradle …
Browse files Browse the repository at this point in the history
…and gradle.properties.
  • Loading branch information
Aeronica committed Jan 1, 2024
1 parent 4e2506e commit c7218ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 36 deletions.
36 changes: 2 additions & 34 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ buildscript {
}
}
plugins {
// https://imperceptiblethoughts.com/shadow/introduction/
id 'com.github.johnrengelman.shadow' version '6.1.0'
id "org.sonarqube" version "3.0"
id 'java'
}
Expand Down Expand Up @@ -58,11 +56,7 @@ repositories {
}

configurations {
shade {
transitive = false
}

implementation.extendsFrom shade
implementation.extendsFrom reobfJar
}

def timestamp = "${use_timestamp}".toString() == "true" ? LocalDateTime.now().format("-YYYY-MM-dd.A").toString() : ""
Expand Down Expand Up @@ -201,9 +195,6 @@ dependencies {
runtimeOnly fg.deobf("me.djtheredstoner:DevAuth-${devauth_module}:${devauth_version}")

implementation fg.deobf("curse.maven:${project.configured}")

implementation "com.h2database:h2-mvstore:${project.h2_version}"
shade "com.h2database:h2-mvstore:${project.h2_version}"
}

mixin {
Expand Down Expand Up @@ -271,30 +262,7 @@ sonarqube {
}

reobf {
shadowJar {}
}

def relocate(origin) {
shadowJar.relocate(origin, "aeronicamc.libs.mxtune.shadow.$origin")
}

shadowJar {
preserveFileTimestamps = false
reproducibleFileOrder = true
archiveClassifier = ''
configurations = [project.configurations.shade]
relocate 'org.h2'
exclude 'META-INF/maven/**'
exclude 'META-INF/proguard/**'
exclude 'META-INF/services/**'
exclude 'META-INF/LICENSE*'
exclude 'META-INF/NOTICE*'
exclude 'META-INF/versions/**'
exclude 'module-info.class'
exclude 'LICENSE'

finalizedBy 'reobfShadowJar'
assemble.dependsOn shadowJar
jar {}
}

// Example configuration to allow publishing using the maven-publish task
Expand Down
2 changes: 0 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ devauth_module=forge-latest
devauth_version=1.1.2
devauth_enabled=true

### Libraries
h2_version=2.0.206
#sonarqube
branch_name=1.16.5

0 comments on commit c7218ff

Please sign in to comment.