Skip to content

Commit b6d378e

Browse files
authored
Merge pull request #41 from utPLSQL/feature/embed-java-api
Embedded the java-api into the plugin jar
2 parents 6121870 + 9f0b82f commit b6d378e

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ target/
2020
.mvn
2121
log.txt
2222
**/pom.xml.versionsBackup
23+
dependency-reduced-pom.xml
2324

2425
# Docs
2526
doc/

pom.xml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,22 @@
4949
<maven.version>3.5.0</maven.version>
5050
<java.version>1.8</java.version>
5151
<powermock.version>1.7.4</powermock.version>
52+
<ojdbc.version>12.2.0.1</ojdbc.version>
5253
</properties>
5354

5455
<dependencies>
56+
<dependency>
57+
<groupId>com.oracle.jdbc</groupId>
58+
<artifactId>ojdbc8</artifactId>
59+
<version>${ojdbc.version}</version>
60+
</dependency>
61+
62+
<dependency>
63+
<groupId>com.oracle.jdbc</groupId>
64+
<artifactId>orai18n</artifactId>
65+
<version>${ojdbc.version}</version>
66+
</dependency>
67+
5568
<dependency>
5669
<groupId>org.utplsql</groupId>
5770
<artifactId>java-api</artifactId>
@@ -145,6 +158,26 @@
145158
<encoding>${project.build.sourceEncoding}</encoding>
146159
</configuration>
147160
</plugin>
161+
<plugin>
162+
<groupId>org.apache.maven.plugins</groupId>
163+
<artifactId>maven-shade-plugin</artifactId>
164+
<version>2.1</version>
165+
<executions>
166+
<execution>
167+
<phase>package</phase>
168+
<goals>
169+
<goal>shade</goal>
170+
</goals>
171+
</execution>
172+
</executions>
173+
<configuration>
174+
<artifactSet>
175+
<includes>
176+
<include>org.utplsql:java-api</include>
177+
</includes>
178+
</artifactSet>
179+
</configuration>
180+
</plugin>
148181
<plugin>
149182
<groupId>org.apache.maven.plugins</groupId>
150183
<artifactId>maven-plugin-plugin</artifactId>
@@ -327,5 +360,24 @@
327360
<enabled>true</enabled>
328361
</snapshots>
329362
</repository>
363+
364+
<repository>
365+
<id>maven.oracle.com</id>
366+
<releases>
367+
<enabled>true</enabled>
368+
</releases>
369+
<snapshots>
370+
<enabled>false</enabled>
371+
</snapshots>
372+
<url>https://maven.oracle.com</url>
373+
<layout>default</layout>
374+
</repository>
330375
</repositories>
376+
377+
<pluginRepositories>
378+
<pluginRepository>
379+
<id>maven.oracle.com</id>
380+
<url>https://maven.oracle.com</url>
381+
</pluginRepository>
382+
</pluginRepositories>
331383
</project>

0 commit comments

Comments
 (0)