Skip to content

Commit 2d58cfc

Browse files
committed
fixes #1933 [IDE] duckling intellij import error
1 parent e8877ce commit 2d58cfc

File tree

4 files changed

+91
-5
lines changed

4 files changed

+91
-5
lines changed

nlp/entity-evaluator/duckling/client/pom.xml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,60 @@
7070
<sourceDirectory>src/main/kotlin</sourceDirectory>
7171
</build>
7272

73+
<!-- Intellij workaround -->
74+
<profiles>
75+
<profile>
76+
<id>ide-only</id>
77+
<activation>
78+
<property>
79+
<name>idea.version</name>
80+
</property>
81+
</activation>
82+
<dependencies>
83+
<dependency>
84+
<groupId>wit</groupId>
85+
<artifactId>duckling</artifactId>
86+
<scope>system</scope>
87+
<version>${duckling}</version>
88+
<systemPath>${project.basedir}/../duckling/lib/duckling-${duckling}-standalone.jar</systemPath>
89+
</dependency>
90+
91+
<dependency>
92+
<groupId>ai.tock</groupId>
93+
<artifactId>tock-nlp-core-service</artifactId>
94+
</dependency>
95+
<dependency>
96+
<groupId>ai.tock</groupId>
97+
<artifactId>tock-nlp-entity-value</artifactId>
98+
</dependency>
99+
100+
101+
<dependency>
102+
<groupId>com.squareup.retrofit2</groupId>
103+
<artifactId>retrofit</artifactId>
104+
</dependency>
105+
<dependency>
106+
<groupId>com.squareup.okhttp3</groupId>
107+
<artifactId>logging-interceptor</artifactId>
108+
</dependency>
109+
<dependency>
110+
<groupId>com.squareup.okhttp3</groupId>
111+
<artifactId>okhttp</artifactId>
112+
</dependency>
113+
<dependency>
114+
<groupId>com.squareup.retrofit2</groupId>
115+
<artifactId>converter-jackson</artifactId>
116+
</dependency>
117+
<dependency>
118+
<groupId>io.github.resilience4j</groupId>
119+
<artifactId>resilience4j-retrofit</artifactId>
120+
</dependency>
121+
<dependency>
122+
<groupId>io.vertx</groupId>
123+
<artifactId>vertx-core</artifactId>
124+
</dependency>
125+
</dependencies>
126+
</profile>
127+
</profiles>
128+
73129
</project>

nlp/entity-evaluator/duckling/duckling/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@
2828
<name>Tock Duckling Lib</name>
2929
<description>Duckling lib</description>
3030

31-
<properties>
32-
<duckling>0.4.23</duckling>
33-
<duckling.basedir>${project.basedir}</duckling.basedir>
34-
</properties>
35-
3631
<build>
3732
<sourceDirectory>src/main/kotlin</sourceDirectory>
3833
<plugins>

nlp/entity-evaluator/duckling/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
<name>Tock Duckling Entities</name>
3030
<description>Root project for Duckling Entities</description>
3131

32+
<properties>
33+
<duckling>0.4.23</duckling>
34+
</properties>
35+
3236
<modules>
3337
<module>duckling</module>
3438
<module>service</module>

nlp/entity-evaluator/duckling/service/pom.xml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,35 @@
8383
</plugins>
8484
</build>
8585

86+
<!-- Intellij workaround -->
87+
<profiles>
88+
<profile>
89+
<id>ide-only</id>
90+
<activation>
91+
<property>
92+
<name>idea.version</name>
93+
</property>
94+
</activation>
95+
<dependencies>
96+
<dependency>
97+
<groupId>wit</groupId>
98+
<artifactId>duckling</artifactId>
99+
<scope>system</scope>
100+
<version>${duckling}</version>
101+
<systemPath>${project.basedir}/../duckling/lib/duckling-${duckling}-standalone.jar</systemPath>
102+
</dependency>
103+
104+
<dependency>
105+
<groupId>io.vertx</groupId>
106+
<artifactId>vertx-web</artifactId>
107+
</dependency>
108+
<dependency>
109+
<groupId>ai.tock</groupId>
110+
<artifactId>tock-nlp-duckling-duckling</artifactId>
111+
<classifier>jar-dependencies</classifier>
112+
</dependency>
113+
</dependencies>
114+
</profile>
115+
</profiles>
116+
86117
</project>

0 commit comments

Comments
 (0)