Skip to content

Commit 7aee536

Browse files
committed
Fix to get the app running in intellij
1 parent 60cf80a commit 7aee536

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

server/build.gradle

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@ plugins {
1111
id "java-library"
1212
id "application"
1313
id "nebula.ospackage-application" version "8.0.3"
14-
id "idea"
1514
}
1615

17-
idea.module.outputDir file("out/production/classes")
18-
19-
group = 'ai.swim'
16+
group = 'org.swimos'
2017
description = 'Tutorial- Web Agents'
2118
ext.moduleName = 'swim.tutorial'
2219
sourceCompatibility = 1.9
@@ -38,11 +35,18 @@ dependencies {
3835
}
3936

4037
afterEvaluate {
38+
39+
sourceSets {
40+
main.output.resourcesDir = main.java.outputDir
41+
}
42+
4143
compileJava {
4244
if (useModules) {
4345
doFirst {
4446
options.compilerArgs += [
4547
'--module-path', classpath.asPath,
48+
'--patch-module', "$moduleName="
49+
+ files(sourceSets.main.resources.srcDirs).asPath,
4650
]
4751
classpath = files()
4852
}

0 commit comments

Comments
 (0)