Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7a99449

Browse files
committed
Migrate to Maven
1 parent 74425d8 commit 7a99449

13 files changed

+108
-157
lines changed

.idea/codeStyles/Project.xml

-10
This file was deleted.

.idea/codeStyles/codeStyleConfig.xml

-5
This file was deleted.

.idea/dictionaries/utPLSQL.xml

-7
This file was deleted.

.travis/create_api_user.sh

-17
This file was deleted.

.travis/install_demo_project.sh

-34
This file was deleted.

.travis/install_utplsql.sh

-33
This file was deleted.

.travis/start_db.sh

-14
This file was deleted.

README.md

+4-29
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,14 @@ This is a collection of classes, that makes it easy to access the [utPLSQL v3](h
88
* Handles compatibility for all 3.x versions of utPLSQL
99

1010
## Downloading
11-
This is a Maven Library project, you can add on your Java project as a dependency.
12-
13-
The project is hosted on [packagecloud.io](https://packagecloud.io/utPLSQL/utPLSQL-java-api)
14-
15-
[![packagecloud](https://packagecloud.io/images/packagecloud-badge.png)](https://packagecloud.io/utPLSQL/utPLSQL-java-api)
16-
1711

18-
You install this Maven repository by adding it to the <repositories> section of your pom.xml. No special plugins or extensions are required.
19-
20-
```xml
21-
<repositories>
22-
<repository>
23-
<id>utplsql-java-api</id>
24-
<url>
25-
https://packagecloud.io/utplsql/utplsql-java-api/maven2
26-
</url>
27-
<releases>
28-
<enabled>true</enabled>
29-
</releases>
30-
<snapshots>
31-
<enabled>true</enabled>
32-
</snapshots>
33-
</repository>
34-
</repositories>
35-
```
12+
This is a Maven Library project, you can add on your Java project as a dependency.
3613

37-
To use the java-api library, add this to the `<dependencies>` section of your `pom.xml`.
3814
```xml
3915
<dependency>
4016
<groupId>org.utplsql</groupId>
41-
<artifactId>java-api</artifactId>
42-
<version>3.1.7</version>
43-
<scope>compile</scope>
17+
<artifactId>utplsql-java-api</artifactId>
18+
<version>3.1.10</version>
4419
</dependency>
4520
```
4621

@@ -129,4 +104,4 @@ try (Connection conn = DriverManager.getConnection(url)) {
129104

130105
## Contributing
131106

132-
See [CONTRIBUTING.md](CONTRIBUTING.md)
107+
See [CONTRIBUTING.md](CONTRIBUTING.md)

RELEASE-CHECKLIST.md

-5
This file was deleted.
File renamed without changes.

pom.xml

+103
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<groupId>org.utplsql</groupId>
6+
<artifactId>utplsql-java-api</artifactId>
7+
<version>3.1.10-SNAPSHOT</version>
8+
9+
<name>utPLSQL Java API</name>
10+
<description>Java API for running Unit Tests with utPLSQL v3+.</description>
11+
<url>https://github.com/utPLSQL/utPLSQL-java-api</url>
12+
13+
<properties>
14+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15+
<maven.compiler.source>1.8</maven.compiler.source>
16+
<maven.compiler.target>1.8</maven.compiler.target>
17+
<junit.jupiter.version>5.5.2</junit.jupiter.version>
18+
<oracle.jdbc.version>19.3.0.0</oracle.jdbc.version>
19+
</properties>
20+
21+
<licenses>
22+
<license>
23+
<name>Apache License, Version 2.0</name>
24+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
25+
<distribution>repo</distribution>
26+
</license>
27+
</licenses>
28+
29+
<dependencies>
30+
<dependency>
31+
<groupId>org.slf4j</groupId>
32+
<artifactId>slf4j-api</artifactId>
33+
<version>1.7.36</version>
34+
</dependency>
35+
<dependency>
36+
<groupId>com.oracle.database.jdbc</groupId>
37+
<artifactId>ojdbc8</artifactId>
38+
<version>19.3.0.0</version>
39+
</dependency>
40+
<dependency>
41+
<groupId>com.oracle.database.nls</groupId>
42+
<artifactId>orai18n</artifactId>
43+
<version>19.3.0.0</version>
44+
</dependency>
45+
<dependency>
46+
<groupId>com.google.code.findbugs</groupId>
47+
<artifactId>jsr305</artifactId>
48+
<version>3.0.2</version>
49+
</dependency>
50+
51+
<dependency>
52+
<groupId>org.junit.jupiter</groupId>
53+
<artifactId>junit-jupiter</artifactId>
54+
<version>${junit.jupiter.version}</version>
55+
<scope>test</scope>
56+
</dependency>
57+
<dependency>
58+
<groupId>org.hamcrest</groupId>
59+
<artifactId>hamcrest</artifactId>
60+
<version>2.1</version>
61+
</dependency>
62+
<dependency>
63+
<groupId>org.mockito</groupId>
64+
<artifactId>mockito-core</artifactId>
65+
<version>3.0.0</version>
66+
</dependency>
67+
</dependencies>
68+
69+
<build>
70+
<plugins>
71+
<plugin>
72+
<groupId>org.apache.maven.plugins</groupId>
73+
<artifactId>maven-failsafe-plugin</artifactId>
74+
<executions>
75+
<execution>
76+
<goals>
77+
<goal>integration-test</goal>
78+
<goal>verify</goal>
79+
</goals>
80+
</execution>
81+
</executions>
82+
<configuration>
83+
<environmentVariables>
84+
<DB_URL>${dbUrl}</DB_URL>
85+
<DB_USER>${dbUser}</DB_USER>
86+
<DB_PASS>${dbPass}</DB_PASS>
87+
</environmentVariables>
88+
</configuration>
89+
</plugin>
90+
<plugin>
91+
<groupId>com.amashchenko.maven.plugin</groupId>
92+
<artifactId>gitflow-maven-plugin</artifactId>
93+
<version>1.18.0</version>
94+
<configuration>
95+
<verbose>true</verbose>
96+
<gitFlowConfig>
97+
<productionBranch>main</productionBranch>
98+
</gitFlowConfig>
99+
</configuration>
100+
</plugin>
101+
</plugins>
102+
</build>
103+
</project>

settings.gradle.kts

-2
This file was deleted.

src/test/java/org/utplsql/api/AbstractDatabaseTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public abstract class AbstractDatabaseTest {
1616
private static String sPass;
1717

1818
static {
19-
sUrl = EnvironmentVariableUtil.getEnvValue("DB_URL", "192.168.99.100:1521:XE");
19+
sUrl = EnvironmentVariableUtil.getEnvValue("DB_URL", "localhost:1521:XE");
2020
sUser = EnvironmentVariableUtil.getEnvValue("DB_USER", "app");
2121
sPass = EnvironmentVariableUtil.getEnvValue("DB_PASS", "app");
2222
}

0 commit comments

Comments
 (0)