-
Notifications
You must be signed in to change notification settings - Fork 4
Startup Java Project Configuration #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
f4a9810
235c777
a67dcf5
ab00b9c
b0d21d7
d86079e
0d4837a
7676add
c0d2766
c31c681
e109009
228d3dc
45c88d0
9162ffa
6d3a9f8
1e25bc5
8ca4248
b04f4be
9811c23
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # IntelliJ | ||
| *.iml | ||
| .idea/workspace.xml | ||
| .idea/libraries/ | ||
|
|
||
| # Maven | ||
| target/ | ||
| pom.xml.tag | ||
| pom.xml.releaseBackup | ||
| pom.xml.versionsBackup | ||
| pom.xml.next | ||
| release.properties | ||
| dependency-reduced-pom.xml | ||
| buildNumber.properties | ||
| .mvn/timing.properties | ||
|
|
||
| # Avoid ignoring Maven wrapper jar file (.jar files are usually ignored) | ||
| !/.mvn/wrapper/maven-wrapper.jar |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
|
|
||
| ##### Configuring the Oracle Maven Repository ##### | ||
| http://docs.oracle.com/middleware/1213/core/MAVEN/config_maven_repo.htm#MAVEN9010 | ||
|
|
||
| ##### IntelliJ IDEA Maven Module ##### | ||
| https://www.jetbrains.com/help/idea/2017.1/maven.html |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| <modelVersion>4.0.0</modelVersion> | ||
|
|
||
| <groupId>io.github.utplsql</groupId> | ||
| <artifactId>java-api</artifactId> | ||
| <version>1.0</version> | ||
| <packaging>jar</packaging> | ||
|
|
||
| <name>java-api</name> | ||
| <url>http://maven.apache.org</url> | ||
|
|
||
| <properties> | ||
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
| </properties> | ||
|
|
||
| <dependencies> | ||
| <dependency> | ||
| <groupId>com.oracle.jdbc</groupId> | ||
| <artifactId>ojdbc7</artifactId> | ||
| <version>12.1.0.2</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>junit</groupId> | ||
| <artifactId>junit</artifactId> | ||
| <version>4.12</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| </dependencies> | ||
|
|
||
| <repositories> | ||
| <repository> | ||
| <id>maven.oracle.com</id> | ||
| <releases> | ||
| <enabled>true</enabled> | ||
| </releases> | ||
| <snapshots> | ||
| <enabled>false</enabled> | ||
| </snapshots> | ||
| <url>https://maven.oracle.com</url> | ||
| <layout>default</layout> | ||
| </repository> | ||
| </repositories> | ||
|
|
||
| <pluginRepositories> | ||
| <pluginRepository> | ||
| <id>maven.oracle.com</id> | ||
| <url>https://maven.oracle.com</url> | ||
| </pluginRepository> | ||
| </pluginRepositories> | ||
|
|
||
| </project> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| package io.github.utplsql; | ||
|
|
||
| /** | ||
| * Hello world! | ||
| * | ||
| */ | ||
| public class App { | ||
|
|
||
| public static void main( String[] args ) { | ||
| System.out.println( "Hello World!" ); | ||
| } | ||
|
|
||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| package io.github.utplsql; | ||
|
|
||
| import junit.framework.Test; | ||
| import junit.framework.TestCase; | ||
| import junit.framework.TestSuite; | ||
|
|
||
| /** | ||
| * Unit test for simple App. | ||
| */ | ||
| public class AppTest extends TestCase { | ||
|
|
||
| /** | ||
| * Create the test case | ||
| * | ||
| * @param testName name of the test case | ||
| */ | ||
| public AppTest( String testName ) { | ||
| super( testName ); | ||
| } | ||
|
|
||
| /** | ||
| * @return the suite of tests being tested | ||
| */ | ||
| public static Test suite() { | ||
| return new TestSuite( AppTest.class ); | ||
| } | ||
|
|
||
| /** | ||
| * Rigourous Test :-) | ||
| */ | ||
| public void testApp() { | ||
| assertTrue( true ); | ||
| } | ||
|
|
||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use java7 driver or go ahead with java8?
Maybe entire project should be build on java7?
Or do we want 2 separate builds with java7 and java8?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to use Java 8 because of lambda expressions and try with resources. But if we want to support both drivers, we can't use those new features anyways.
We could start with the Java 7 and add support to the newest later.
What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me.
Probably for Java8 we will need a separate branch/project then :(