Skip to content

Commit

Permalink
build(Gradle): Apply ORT conventions plugins instead of core plugins
Browse files Browse the repository at this point in the history
This prepares for migrating build logic in these projects.

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Jun 20, 2023
1 parent 3fe4c5b commit d36dd47
Show file tree
Hide file tree
Showing 74 changed files with 151 additions and 149 deletions.
4 changes: 2 additions & 2 deletions advisor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

dependencies {
Expand Down
4 changes: 3 additions & 1 deletion analyzer/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
// Apply core plugins.
`java-library`
`java-test-fixtures`

// Apply precompiled plugins.
id("ort-library-conventions")

// Apply third-party plugins.
alias(libs.plugins.kotlinSerialization)
}
Expand Down
4 changes: 2 additions & 2 deletions cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import java.nio.file.Files
import org.graalvm.buildtools.gradle.tasks.BuildNativeImageTask

plugins {
// Apply core plugins.
application
// Apply precompiled plugins.
id("ort-application-conventions")

// Apply third-party plugins.
alias(libs.plugins.graalVmNativeImage)
Expand Down
4 changes: 2 additions & 2 deletions clients/clearly-defined/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
// Apply core plugins.
`java-library`
// Apply precompiled plugins.
id("ort-library-conventions")

// Apply third-party plugins.
alias(libs.plugins.kotlinSerialization)
Expand Down
4 changes: 2 additions & 2 deletions clients/fossid-webapp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions clients/github-graphql/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import com.expediagroup.graphql.plugin.gradle.config.GraphQLSerializer
import com.expediagroup.graphql.plugin.gradle.graphql

plugins {
// Apply core plugins.
`java-library`
// Apply precompiled plugins.
id("ort-library-conventions")

// Apply third-party plugins.
alias(libs.plugins.graphQl)
Expand Down
4 changes: 2 additions & 2 deletions clients/nexus-iq/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
// Apply core plugins.
`java-library`
// Apply precompiled plugins.
id("ort-library-conventions")

// Apply third-party plugins.
alias(libs.plugins.kotlinSerialization)
Expand Down
4 changes: 2 additions & 2 deletions clients/oss-index/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

plugins {
// Apply core plugins.
`java-library`
// Apply precompiled plugins.
id("ort-library-conventions")

// Apply third-party plugins.
alias(libs.plugins.kotlinSerialization)
Expand Down
4 changes: 2 additions & 2 deletions clients/osv/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
// Apply core plugins.
`java-library`
// Apply precompiled plugins.
id("ort-library-conventions")

// Apply third-party plugins.
alias(libs.plugins.kotlinSerialization)
Expand Down
4 changes: 2 additions & 2 deletions clients/scanoss/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
// Apply core plugins.
`java-library`
// Apply precompiled plugins.
id("ort-library-conventions")

// Apply third-party plugins.
alias(libs.plugins.kotlinSerialization)
Expand Down
4 changes: 2 additions & 2 deletions clients/vulnerable-code/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
// Apply core plugins.
`java-library`
// Apply precompiled plugins.
id("ort-library-conventions")

// Apply third-party plugins.
alias(libs.plugins.kotlinSerialization)
Expand Down
4 changes: 2 additions & 2 deletions detekt-rules/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import org.gradle.internal.logging.text.StyledTextOutputFactory
import org.gradle.kotlin.dsl.support.serviceOf

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

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions downloader/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions evaluator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import de.undercouch.gradle.tasks.download.Download
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
// Apply core plugins.
`java-library`
// Apply precompiled plugins.
id("ort-library-conventions")

// Apply third-party plugins.
alias(libs.plugins.download)
Expand Down
4 changes: 2 additions & 2 deletions helper-cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import java.nio.charset.Charset

plugins {
// Apply core plugins.
application
// Apply precompiled plugins.
id("ort-application-conventions")
}

application {
Expand Down
4 changes: 2 additions & 2 deletions model/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions notifier/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

repositories {
Expand Down
4 changes: 2 additions & 2 deletions plugins/commands/advisor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions plugins/commands/analyzer/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

repositories {
Expand Down
4 changes: 2 additions & 2 deletions plugins/commands/api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

dependencies {
Expand Down
5 changes: 2 additions & 3 deletions plugins/commands/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
*/

plugins {
// Apply core plugins.
`java-platform`
`maven-publish`
// Apply precompiled plugins.
id("ort-plugins-conventions")
}

javaPlatform {
Expand Down
4 changes: 2 additions & 2 deletions plugins/commands/compare/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions plugins/commands/config/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions plugins/commands/downloader/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions plugins/commands/evaluator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

repositories {
Expand Down
4 changes: 2 additions & 2 deletions plugins/commands/notifier/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

repositories {
Expand Down
4 changes: 2 additions & 2 deletions plugins/commands/reporter/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions plugins/commands/requirements/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

repositories {
Expand Down
4 changes: 2 additions & 2 deletions plugins/commands/scanner/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

repositories {
Expand Down
4 changes: 2 additions & 2 deletions plugins/commands/upload-curations/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions plugins/commands/upload-result-to-postgres/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

repositories {
Expand Down
4 changes: 2 additions & 2 deletions plugins/commands/upload-result-to-sw360/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

repositories {
Expand Down
4 changes: 2 additions & 2 deletions plugins/package-curation-providers/api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

dependencies {
Expand Down
5 changes: 2 additions & 3 deletions plugins/package-curation-providers/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
*/

plugins {
// Apply core plugins.
`java-platform`
`maven-publish`
// Apply precompiled plugins.
id("ort-plugins-conventions")
}

javaPlatform {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions plugins/package-curation-providers/file/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/

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

dependencies {
Expand Down
Loading

0 comments on commit d36dd47

Please sign in to comment.