Skip to content

Commit c6559cc

Browse files
committed
Fix to get the app running in intellij
1 parent e0b7115 commit c6559cc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

project.gradle

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
apply plugin: 'java-library'
22
apply plugin: 'application'
3-
apply plugin: 'idea'
43

54
group = 'org.swimos'
6-
idea.module.outputDir file("out/production/classes")
75
version = project.property('swim.version')
86

97
repositories {
@@ -19,8 +17,14 @@ dependencies {
1917
}
2018

2119
afterEvaluate {
20+
sourceSets {
21+
main.output.resourcesDir = main.java.outputDir
22+
}
23+
2224
compileJava {
23-
options.compilerArgs = ['--module-path', classpath.asPath, '-Xlint:all']
25+
options.compilerArgs = ['--module-path', classpath.asPath,
26+
'-Xlint:all',
27+
'--patch-module', "$moduleName=" + files(sourceSets.main.resources.srcDirs).asPath]
2428
classpath = files()
2529
options.encoding = 'UTF-8'
2630
source = sourceSets.main.allJava

0 commit comments

Comments
 (0)