Skip to content
Permalink
Browse files

Gradle: Use Kotlin syntactic sugar to add plugins

Core plugins can be directly added by their name. If their name does not
only consist of letters, it must be enclosed in backticks.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
  • Loading branch information...
sschuberth committed May 27, 2019
1 parent 783dd4c commit a567f09cbd4673b354b62a4113d47e16c9d3fa62
@@ -7,7 +7,7 @@ val toml4jVersion: String by project

plugins {
// Apply core plugins.
id("java-library")
`java-library`
}

repositories {
@@ -6,7 +6,7 @@ val reflectionsVersion: String by project

plugins {
// Apply core plugins.
id("application")
application

// Apply third-party plugins.
id("com.bmuschko.docker-java-application")
@@ -3,7 +3,7 @@ val jacksonVersion: String by project

plugins {
// Apply core plugins.
id("java-library")
`java-library`
}

dependencies {
@@ -1,6 +1,6 @@
plugins {
// Apply core plugins.
id("java-library")
`java-library`
}

dependencies {
@@ -9,7 +9,7 @@ val semverVersion: String by project

plugins {
// Apply core plugins.
id("java-library")
`java-library`
}

dependencies {
@@ -7,7 +7,7 @@ val xalanVersion: String by project

plugins {
// Apply core plugins.
id("java-library")
`java-library`
}

val generatedResourcesDir = file("$buildDir/generated-resources/main")
@@ -2,7 +2,7 @@ val kotlinxCoroutinesVersion: String by project

plugins {
// Apply core plugins.
id("java-library")
`java-library`
}

dependencies {
@@ -17,8 +17,8 @@ val jacksonVersion: String by project

plugins {
// Apply core plugins.
id("antlr")
id("java-library")
antlr
`java-library`

// Apply third-party plugins.
id("at.bxm.svntools")
@@ -2,7 +2,7 @@ val kotlintestVersion: String by project

plugins {
// Apply core plugins.
id("java-library")
`java-library`
}

dependencies {
@@ -10,7 +10,7 @@ val xzVersion: String by project

plugins {
// Apply core plugins.
id("java-library")
`java-library`
}

dependencies {

0 comments on commit a567f09

Please sign in to comment.
You can’t perform that action at this time.