11 jdk support

This commit is contained in:
Anton Romanov 2020-09-12 13:04:21 +04:00
parent 62f3ffcf5c
commit 97938452b7
2 changed files with 21 additions and 38 deletions

View File

@ -1,39 +1,21 @@
buildscript { plugins {
ext { id 'java'
versionSpringBoot = '1.4.5.RELEASE' id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'org.springframework.boot' version '2.3.3.RELEASE'
} }
repositories { //mainClassName = 'ru.ulstu.TimeSeriesApplication'
mavenCentral()
}
dependencies {
classpath group: 'org.springframework.boot', name: 'spring-boot-gradle-plugin', version: versionSpringBoot
}
}
apply plugin: 'application'
apply plugin: 'org.springframework.boot'
mainClassName = 'tech.athene.brockerservice.BrockerServiceApplication'
jar { jar {
baseName = 'time-series-smoothing' archivesBaseName='time-series-smoothing'
version = '0.0.1'
manifest {
attributes 'Main-Class': mainClassName
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
} }
repositories { repositories {
mavenCentral() mavenCentral()
} }
sourceCompatibility = 1.8 sourceCompatibility = 11
targetCompatibility = 1.8 targetCompatibility = 11
dependencies { dependencies {
ext { ext {
@ -43,21 +25,22 @@ dependencies {
versionSwagger = '2.5.0' versionSwagger = '2.5.0'
} }
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-security'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-jetty'
compile group: 'org.slf4j', name: 'slf4j-api', version: versionSLF4J
compile group: 'org.eclipse.jetty', name: 'jetty-servlet', version: versionJetty implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-security'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-jetty'
implementation group: 'org.slf4j', name: 'slf4j-api', version: versionSLF4J
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: versionJackson implementation group: 'org.eclipse.jetty', name: 'jetty-servlet', version: versionJetty
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: versionJackson
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: versionJackson
compile group: 'io.springfox', name: 'springfox-swagger2', version: versionSwagger implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: versionJackson
compile group: 'io.springfox', name: 'springfox-swagger-ui', version: versionSwagger implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: versionJackson
implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: versionJackson
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test' implementation group: 'io.springfox', name: 'springfox-swagger2', version: versionSwagger
implementation group: 'io.springfox', name: 'springfox-swagger-ui', version: versionSwagger
testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-test'
} }

View File

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-all.zip