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

Resolved build issues and added linter

parent 7fb9a6bb
......@@ -13,10 +13,12 @@ plugins {
id 'org.springframework.boot' version '2.5.0'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id "nebula.lint" version "17.6.1"
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = javaVersion
repositories {
mavenCentral()
......@@ -24,9 +26,11 @@ repositories {
dependencies {
// 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[]
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-web'
// tag::tests[]
testImplementation('org.springframework.boot:spring-boot-starter-test')
// end::tests[]
......@@ -36,3 +40,21 @@ test {
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()
javaVersion='2.5.0'
\ No newline at end of file
javaVersion=1.8
\ 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