Skip to content

Commit

Permalink
Un-"modularize" Matcher (remove JPMS)
Browse files Browse the repository at this point in the history
  • Loading branch information
NebelNidas committed Mar 10, 2024
1 parent b8dc2d2 commit 6e5d676
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 52 deletions.
29 changes: 10 additions & 19 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ plugins {
id "checkstyle"
id 'org.openjfx.javafxplugin'
id 'com.github.johnrengelman.shadow'
id 'org.gradlex.extra-java-module-info'
}

repositories {
Expand Down Expand Up @@ -39,11 +38,6 @@ java {
withSourcesJar()
}

tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release = 17
}

javafx {
version = javafx_version
modules = [ 'javafx.controls', 'javafx.web' ]
Expand Down Expand Up @@ -83,22 +77,19 @@ dependencies {
runtimeOnly "org.openjfx:javafx-media:${javafx_version}:linux"
}

extraJavaModuleInfo {
failOnMissingModuleInfo.set(false) // because of transitive dependencies

// CFR
automaticModule("net.fabricmc:cfr", "cfr")

// Vineflower
automaticModule("org.vineflower:vineflower", "org.vineflower.vineflower")
application {
mainClass = 'matcher.Main'
}

// Procyon
automaticModule("org.bitbucket.mstrobel:procyon-compilertools", "procyon.compilertools")
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release = 17
}

application {
mainModule = 'matcher'
mainClass = 'matcher.Main'
jar {
manifest {
attributes 'Automatic-Module-Name': 'matcher'
}
}

publishing {
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ org.gradle.jvmargs=-Xmx2G
# Gradle Plugins
javafx_plugin_version = 0.1.0
shadow_version = 7.1.2
extra_java_module_info_version = 1.6

# Poject Properties
version = 0.1.0
Expand Down
1 change: 0 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ pluginManagement {
plugins {
id 'org.openjfx.javafxplugin' version "${javafx_plugin_version}"
id 'com.github.johnrengelman.shadow' version "${shadow_version}"
id 'org.gradlex.extra-java-module-info' version "${extra_java_module_info_version}"
}
}

Expand Down
31 changes: 0 additions & 31 deletions src/main/java/module-info.java

This file was deleted.

0 comments on commit 6e5d676

Please sign in to comment.