Commit 709d2d3e authored by Lakshmi Chaitanya's avatar Lakshmi Chaitanya

Resolved build issues and added linter

parent 7fb9a6bb
...@@ -13,10 +13,12 @@ plugins { ...@@ -13,10 +13,12 @@ plugins {
id 'org.springframework.boot' version '2.5.0' id 'org.springframework.boot' version '2.5.0'
id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java' id 'java'
id "nebula.lint" version "17.6.1"
} }
group = 'com.example' group = 'com.example'
version = '0.0.1-SNAPSHOT' version = '0.0.1-SNAPSHOT'
sourceCompatibility = javaVersion
repositories { repositories {
mavenCentral() mavenCentral()
...@@ -25,6 +27,8 @@ repositories { ...@@ -25,6 +27,8 @@ repositories {
dependencies { dependencies {
// tag::actuator[] // tag::actuator[]
implementation 'org.springframework.boot:spring-boot-starter-actuator' implementation 'org.springframework.boot:spring-boot-starter-actuator'
// https://mvnrepository.com/artifact/org.springframework.data/spring-data-mongodb
implementation group: 'org.springframework.data', name: 'spring-data-mongodb'
// end::actuator[] // end::actuator[]
implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-web'
// tag::tests[] // tag::tests[]
...@@ -36,3 +40,21 @@ test { ...@@ -36,3 +40,21 @@ test {
useJUnitPlatform() useJUnitPlatform()
} }
task packageDistribution(type: Zip) {
archiveFileName = "springboot-sample.zip"
destinationDirectory = file("$buildDir/dist")
from "$rootDir/src"
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
task packageDistribution(type: Zip) {
archiveFileName = "springboot-sample.zip"
destinationDirectory = file("$buildDir/dist")
from "$rootDir/src"
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
mavenRepo=mavenCentral() mavenRepo=mavenCentral()
javaVersion='2.5.0' javaVersion=1.8
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment