|
1 | | -buildscript { |
2 | | - ext { |
3 | | - springBootVersion = '1.5.2.RELEASE' |
4 | | - } |
| 1 | +/* |
| 2 | + * This file was generated by the Gradle 'init' task. |
| 3 | + */ |
5 | 4 |
|
6 | | - repositories { |
7 | | - mavenLocal() |
8 | | - mavenCentral() |
9 | | - } |
10 | | - dependencies { |
11 | | - classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") |
12 | | - } |
13 | | -} |
14 | | - |
15 | | - |
16 | | -apply plugin: 'java' |
17 | | -apply plugin: 'eclipse' |
18 | | -apply plugin: 'org.springframework.boot' |
19 | | - |
20 | | -sourceCompatibility = 1.8 |
21 | | -targetCompatibility = 1.8 |
22 | | - |
23 | | -jar { |
24 | | - baseName = 'spring-boot-sample-jelastic' |
25 | | - version = '1.0.0' |
| 5 | +plugins { |
| 6 | + id 'java-library' |
| 7 | + id 'maven-publish' |
26 | 8 | } |
27 | 9 |
|
28 | 10 | repositories { |
29 | | - mavenLocal() |
30 | | - mavenCentral() |
31 | | - |
| 11 | + mavenLocal() |
| 12 | + maven { |
| 13 | + url = uri('https://repo.maven.apache.org/maven2/') |
| 14 | + } |
32 | 15 | } |
33 | 16 |
|
34 | 17 | dependencies { |
35 | | - compile("org.springframework.boot:spring-boot-starter-thymeleaf") |
36 | | - compile("org.hibernate:hibernate-validator") |
37 | | - compile("org.springframework.boot:spring-boot-starter") |
38 | | - compile("org.springframework.boot:spring-boot-starter-actuator") |
39 | | - compile 'org.jolokia:jolokia-core' |
40 | | - testCompile("org.springframework.boot:spring-boot-starter-test") |
| 18 | + api libs.javax.validation.validation.api |
| 19 | + api libs.org.hibernate.validator.hibernate.validator |
| 20 | + api libs.org.springframework.boot.spring.boot.starter.thymeleaf |
| 21 | + api libs.org.springframework.boot.spring.boot.starter.actuator |
| 22 | + api libs.org.jolokia.jolokia.client.java |
| 23 | + api libs.org.springframework.boot.spring.boot.starter.web |
| 24 | + testImplementation libs.org.springframework.boot.spring.boot.starter.test |
| 25 | +} |
| 26 | + |
| 27 | +group = 'org.springframework' |
| 28 | +version = '3.0.0' |
| 29 | +description = 'Spring Boot Sample Jelastic' |
| 30 | +java.sourceCompatibility = JavaVersion.VERSION_1_8 |
| 31 | + |
| 32 | +publishing { |
| 33 | + publications { |
| 34 | + maven(MavenPublication) { |
| 35 | + from(components.java) |
| 36 | + } |
| 37 | + } |
41 | 38 | } |
42 | 39 |
|
| 40 | +tasks.withType(JavaCompile) { |
| 41 | + options.encoding = 'UTF-8' |
| 42 | +} |
43 | 43 |
|
44 | | -task wrapper(type: Wrapper) { |
45 | | - gradleVersion = '3.4.1' |
| 44 | +tasks.withType(Javadoc) { |
| 45 | + options.encoding = 'UTF-8' |
46 | 46 | } |
0 commit comments