Skip to content

Commit 0dffe52

Browse files
committed
Reapply "Enable ./gradlew run on Windows if more dependencies are used (#11451)"
This reverts commit 2a04955.
1 parent b91e030 commit 0dffe52

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ plugins {
1010

1111
id 'me.champeau.jmh' version '0.7.2'
1212

13-
id 'org.javamodularity.moduleplugin' version '1.8.15'
13+
// This is https://github.com/java9-modularity/gradle-modules-plugin/pull/282
14+
id 'com.github.koppor.gradle-modules-plugin' version 'jitpack-SNAPSHOT'
1415

1516
id 'org.openjfx.javafxplugin' version '0.1.0'
1617

@@ -496,6 +497,8 @@ run {
496497
'javafx.controls/javafx.scene.control.skin' : 'org.controlsfx.controls',
497498
'javafx.graphics/javafx.scene' : 'org.controlsfx.controls'
498499
]
500+
501+
createCommandLineArgumentFile = true
499502
}
500503

501504
if (project.hasProperty('component')){

settings.gradle

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
pluginManagement {
2+
resolutionStrategy {
3+
eachPlugin {
4+
// Hint from https://github.com/jitpack/jitpack.io/issues/1459#issuecomment-1279851731
5+
// Updated solution at https://github.com/foodiestudio/convention-plugins?tab=readme-ov-file#convention-plugins
6+
if (requested.id.id.startsWith("com.github.koppor")) {
7+
// This is https://github.com/java9-modularity/gradle-modules-plugin/pull/282
8+
useModule("com.github.koppor:gradle-modules-plugin:jitpack-SNAPSHOT")
9+
}
10+
}
11+
}
12+
13+
repositories {
14+
maven {
15+
url 'https://jitpack.io'
16+
}
17+
gradlePluginPortal()
18+
}
19+
}
20+
121
plugins {
222
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
323
}

0 commit comments

Comments
 (0)