Skip to content

Commit f8cda92

Browse files
committed
Use Gradle plugin DSL
1 parent 9e99ae7 commit f8cda92

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

build.gradle

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@ buildscript {
22
repositories {
33
jcenter()
44
mavenCentral()
5-
maven { url 'https://repo.spring.io/plugins-release' }
6-
maven { url "https://plugins.gradle.org/m2/" }
75
}
86
dependencies {
9-
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
107
classpath("gradle.plugin.org.kt3k.gradle.plugin:coveralls-gradle-plugin:${coverallsGradlePluginVersion}")
118
}
129
}
1310

11+
plugins {
12+
id "java"
13+
id "org.springframework.boot" version "${springBootVersion}"
14+
id "io.spring.dependency-management" version "${springDependencyManagementVersion}"
15+
id "idea"
16+
}
17+
1418
// source: https://github.com/mendhak/Gradle-Travis-Colored-Output/blob/master/ColoredOutput.gradle
1519
tasks.withType(Test) {
1620

@@ -93,11 +97,6 @@ tasks.withType(Test) {
9397

9498
}
9599

96-
apply plugin: 'java'
97-
apply plugin: 'org.springframework.boot'
98-
apply plugin: 'io.spring.dependency-management'
99-
apply plugin: 'idea'
100-
101100
group = 'faforever'
102101
version = 'snapshot'
103102

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
profile=dev
2+
springDependencyManagementVersion=1.0.10.RELEASE
23
springBootVersion=2.3.5.RELEASE
34
javaxInjectVersion=1
45
elideVersion=4.6.8

0 commit comments

Comments
 (0)