Skip to content

Commit

Permalink
avoid apply plugin
Browse files Browse the repository at this point in the history
Thie commit prefers the slightly newer style of gradle plugin
specification
  • Loading branch information
davissuber committed Oct 27, 2023
1 parent a60d6d8 commit 29d56d8
Show file tree
Hide file tree
Showing 15 changed files with 24 additions and 39 deletions.
6 changes: 2 additions & 4 deletions ast/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
plugins {
id 'org.jetbrains.kotlin.jvm'
id 'org.jetbrains.dokka'
id 'kotlin-kapt'
id 'com.vanniktech.maven.publish'
}

apply plugin: 'kotlin-kapt'

kotlin {
jvmToolchain(11)
}
Expand All @@ -16,5 +16,3 @@ dependencies {
testImplementation deps.test.junit
testImplementation deps.test.truth
}

apply plugin: 'com.vanniktech.maven.publish'
6 changes: 2 additions & 4 deletions compiler/ast/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
plugins {
id 'org.jetbrains.kotlin.jvm'
id 'org.jetbrains.dokka'
id 'kotlin-kapt'
id 'com.vanniktech.maven.publish'
}

apply plugin: 'kotlin-kapt'

kotlin {
jvmToolchain(11)
}
Expand All @@ -23,5 +23,3 @@ dependencies {
testImplementation deps.test.compileTesting
testImplementation deps.test.roomCompilerProcessingTesting
}

apply plugin: 'com.vanniktech.maven.publish'
3 changes: 1 addition & 2 deletions compiler/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'org.jetbrains.kotlin.jvm'
id 'org.jetbrains.dokka'
id 'com.vanniktech.maven.publish'
}

kotlin {
Expand Down Expand Up @@ -37,5 +38,3 @@ dependencies {
test {
inputs.files(file("$rootDir/tests/src"))
}

apply plugin: 'com.vanniktech.maven.publish'
3 changes: 1 addition & 2 deletions compiler/ksp/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'org.jetbrains.kotlin.jvm'
id 'com.vanniktech.maven.publish'
}

kotlin {
Expand Down Expand Up @@ -29,5 +30,3 @@ dependencies {
testImplementation deps.test.compileTesting
testImplementation deps.test.compileTestingKotlin
}

apply plugin: 'com.vanniktech.maven.publish'
3 changes: 1 addition & 2 deletions core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'org.jetbrains.kotlin.jvm'
id 'org.jetbrains.dokka'
id 'com.vanniktech.maven.publish'
}

kotlin {
Expand All @@ -12,5 +13,3 @@ dependencies {

implementation deps.kotlin.stdlib
}

apply plugin: 'com.vanniktech.maven.publish'
3 changes: 1 addition & 2 deletions errormessage/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'org.jetbrains.kotlin.jvm'
id 'org.jetbrains.dokka'
id 'com.vanniktech.maven.publish'
}

kotlin {
Expand All @@ -11,5 +12,3 @@ dependencies {
implementation deps.kotlin.stdlib
implementation project(':core')
}

apply plugin: 'com.vanniktech.maven.publish'
3 changes: 1 addition & 2 deletions intellij/ast/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id "org.jetbrains.intellij" version "1.15.0"
id 'org.jetbrains.kotlin.jvm'
id 'org.jetbrains.dokka'
id 'com.vanniktech.maven.publish'
}

intellij {
Expand Down Expand Up @@ -32,5 +33,3 @@ tasks {
enabled = false
}
}

apply plugin: 'com.vanniktech.maven.publish'
3 changes: 1 addition & 2 deletions intellij/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id "org.jetbrains.intellij" version "1.15.0"
id 'org.jetbrains.kotlin.jvm'
id 'org.jetbrains.dokka'
id 'com.vanniktech.maven.publish'
}

intellij {
Expand Down Expand Up @@ -42,5 +43,3 @@ tasks {
enabled = false
}
}

apply plugin: 'com.vanniktech.maven.publish'
7 changes: 4 additions & 3 deletions lib/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
apply plugin: 'java-library'
plugins {
id 'java-library'
id 'com.vanniktech.maven.publish'
}

sourceCompatibility = 1.8
targetCompatibility = 1.8
Expand All @@ -7,5 +10,3 @@ dependencies {
// Dagger is part of the API since we generate code which depends on Dagger's API in the consuming gradle module.
api deps.dagger
}

apply plugin: 'com.vanniktech.maven.publish'
6 changes: 2 additions & 4 deletions models/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
plugins {
id 'org.jetbrains.kotlin.jvm'
id 'org.jetbrains.dokka'
id 'kotlin-kapt'
id 'com.vanniktech.maven.publish'
}

apply plugin: 'kotlin-kapt'

kotlin {
jvmToolchain(11)
}
Expand All @@ -20,5 +20,3 @@ dependencies {
testImplementation deps.test.truth
testImplementation deps.test.compileTesting
}

apply plugin: 'com.vanniktech.maven.publish'
4 changes: 2 additions & 2 deletions samples/sample-kotlin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-kapt'
}
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'

kotlin {
jvmToolchain(11)
Expand Down
7 changes: 3 additions & 4 deletions tests/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
plugins {
id 'com.google.devtools.ksp'
id 'java-library'
id 'kotlin'
id 'kotlin-kapt'
}

apply plugin: 'java-library'
apply plugin: 'kotlin'
apply plugin: 'kotlin-kapt'

kotlin {
jvmToolchain(11)
}
Expand Down
3 changes: 1 addition & 2 deletions viewmodel/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'org.jetbrains.kotlin.jvm'
id 'org.jetbrains.dokka'
id 'com.vanniktech.maven.publish'
}

kotlin {
Expand All @@ -14,5 +15,3 @@ dependencies {

implementation deps.kotlin.stdlib
}

apply plugin: 'com.vanniktech.maven.publish'
3 changes: 1 addition & 2 deletions xprocessing-testing/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'java'
id 'com.github.johnrengelman.shadow'
id 'com.vanniktech.maven.publish'
}

java {
Expand Down Expand Up @@ -43,5 +44,3 @@ artifacts {
runtimeOnly shadowJar
archives shadowJar
}

apply plugin: "com.vanniktech.maven.publish"
3 changes: 1 addition & 2 deletions xprocessing/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'java'
id 'com.github.johnrengelman.shadow'
id 'com.vanniktech.maven.publish'
}

java {
Expand Down Expand Up @@ -43,5 +44,3 @@ artifacts {
runtimeOnly shadowJar
archives shadowJar
}

apply plugin: "com.vanniktech.maven.publish"

0 comments on commit 29d56d8

Please sign in to comment.