-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Spring version; maped root to swagger endpoint; fixed code st…
…yle.
- Loading branch information
1 parent
8b69628
commit 4ca1c33
Showing
8 changed files
with
85 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM openjdk:8-jdk-alpine | ||
VOLUME /tmp | ||
ARG JAR_FILE | ||
COPY ${JAR_FILE} app.jar | ||
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,61 @@ | ||
buildscript { | ||
ext { | ||
springBootVersion = '2.1.0.RELEASE' | ||
} | ||
repositories { | ||
mavenCentral() | ||
maven { | ||
url "https://plugins.gradle.org/m2/" | ||
} | ||
} | ||
dependencies { | ||
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.2.RELEASE") | ||
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}" | ||
classpath "gradle.plugin.com.palantir.gradle.docker:gradle-docker:0.20.1" | ||
} | ||
} | ||
|
||
apply plugin: 'java' | ||
apply plugin: 'idea' | ||
apply plugin: 'org.springframework.boot' | ||
apply plugin: 'io.spring.dependency-management' | ||
|
||
jar { | ||
baseName = 'sifgraph-server' | ||
version = '0.2.0' | ||
} | ||
apply plugin: 'com.palantir.docker' | ||
|
||
repositories { | ||
mavenCentral() | ||
|
||
maven { | ||
url "https://oss.sonatype.org/content/groups/public/" | ||
} | ||
} | ||
|
||
sourceCompatibility = 1.8 | ||
targetCompatibility = 1.8 | ||
|
||
dependencies { | ||
compile("org.springframework.boot:spring-boot-starter-web") | ||
// tag::actuator[] | ||
compile("org.springframework.boot:spring-boot-starter-actuator") | ||
// end::actuator[] | ||
// tag::tests[] | ||
testCompile("org.springframework.boot:spring-boot-starter-test") | ||
// end::tests[] | ||
|
||
compile("pathwaycommons.sif:sifgraph:1.0.0-SNAPSHOT") | ||
|
||
compileOnly("org.springframework.boot:spring-boot-devtools") | ||
|
||
//can use the following instead 'compileOnly' since gradle 4.6: | ||
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor" | ||
|
||
//Swagger and UI | ||
compile "io.springfox:springfox-swagger2:2.7.0" | ||
compile "io.springfox:springfox-swagger-ui:2.7.0" | ||
implementation 'pathwaycommons.sif:sifgraph:1.0.0-SNAPSHOT' | ||
|
||
implementation 'org.springframework.boot:spring-boot-starter-actuator' | ||
implementation 'org.springframework.boot:spring-boot-starter-web' | ||
implementation "org.springframework.boot:spring-boot-configuration-processor" | ||
implementation 'io.springfox:springfox-swagger2:2.7.0' | ||
implementation 'io.springfox:springfox-swagger-ui:2.7.0' | ||
|
||
runtimeOnly 'org.springframework.boot:spring-boot-devtools' | ||
testImplementation 'org.springframework.boot:spring-boot-starter-test' | ||
|
||
//java 9+ does not have Jax B Dependents | ||
implementation 'javax.xml.bind:jaxb-api:2.3.0' | ||
implementation 'com.sun.xml.bind:jaxb-core:2.3.0' | ||
implementation 'com.sun.xml.bind:jaxb-impl:2.3.0' | ||
implementation 'javax.activation:activation:1.1.1' | ||
} | ||
|
||
//enable JSR-303 | ||
// compile "io.springfox:springfox-bean-validators:2.7.0" | ||
sourceCompatibility = 1.8 | ||
group = 'pathwaycommons' | ||
version = '0.3.0' | ||
|
||
docker { | ||
dependsOn build | ||
name "${project.group}/${bootJar.baseName}" | ||
files bootJar.archivePath | ||
buildArgs(['JAR_FILE': "${bootJar.archiveName}"]) | ||
} | ||
|
||
task wrapper(type: Wrapper) { | ||
gradleVersion = '4.7' | ||
gradleVersion = '4.8.1' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Fri May 11 20:06:17 EDT 2018 | ||
#Mon Nov 19 13:21:17 EST 2018 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8.1-all.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rootProject.name = 'sifgraph-server' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters