Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit acb835a

Browse files
added more changes
1 parent 0e3d8ed commit acb835a

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

‎.travis.yml

100644100755
File mode changed.

‎build.gradle

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ targetCompatibility = 1.8
1616
tasks.withType(JavaCompile) {
1717
options.encoding = 'UTF-8'
1818
}
19+
task stage(dependsOn: ['build', 'clean'])
20+
build.mustRunAfter clean
21+
22+
task copyToLib(type: Copy) {
23+
into "$buildDir/libs"
24+
from(configurations.compile)
25+
}
26+
27+
stage.dependsOn(copyToLib)
1928

2029
repositories {
2130
maven { url "https://repo.maven.apache.org/maven2" }
@@ -26,6 +35,19 @@ dependencies {
2635
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test', version:'2.1.1.RELEASE'
2736
}
2837

38+
gradle.taskGraph.whenReady {
39+
taskGraph ->
40+
if (taskGraph.hasTask(stage)) {
41+
test.enabled = false
42+
}
43+
}
44+
45+
jar {
46+
manifest {
47+
attributes 'Main-Class': 'com.gourav.restapi.RestApiApplication'
48+
}
49+
}
50+
2951
jacocoTestReport {
3052
reports {
3153
xml.enabled true

‎src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# MongoDB Atlas uri
2-
spring.data.mongodb.uri=mongodb+srv://jackie:%MONGO_PWD%@cluster0-8w7sg.mongodb.net/test?retryWrites=true&w=majority
2+
spring.data.mongodb.uri=mongodb+srv://jackie:aw4I68phhwt33o4Q@cluster0-8w7sg.mongodb.net/test?retryWrites=true&w=majority
33
spring.data.mongodb.database=restTutorial
44
server.port=8081
55

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /