Terasology/build-logic/build.gradle.kts

56 lines
1.7 KiB
Kotlin

// Copyright 2022 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
import java.net.URI
plugins {
`kotlin-dsl`
}
repositories {
mavenCentral()
google() // gestalt uses an annotation package by Google
gradlePluginPortal()
maven {
name = "Terasology Artifactory"
url = URI("http://artifactory.terasology.org/artifactory/virtual-repo-live")
@Suppress("UnstableApiUsage")
isAllowInsecureProtocol = true // 😱
}
// TODO MYSTERY: As of November 7th 2011 virtual-repo-live could no longer be relied on for latest snapshots - Pro feature?
// We've been using it that way for *years* and nothing likewise changed in the area for years as well. This seems to work ....
maven {
name = "Terasology snapshot locals"
url = URI("http://artifactory.terasology.org/artifactory/terasology-snapshot-local")
@Suppress("UnstableApiUsage")
isAllowInsecureProtocol = true // 😱
}
}
dependencies {
implementation("org.terasology:reflections:0.9.12-MB") {
because("reflections-manifest.gradle.kts")
}
// Additional corrections for old reflections dependencies:
constraints {
implementation("com.google.guava:guava:31.1-jre")
implementation("org.javassist:javassist:3.29.0-GA")
}
// graph analysis
implementation("org.jgrapht:jgrapht-core:1.5.0")
// for inspecting modules
implementation("org.terasology.gestalt:gestalt-module:7.1.0")
// plugins we configure
implementation("com.github.spotbugs.snom:spotbugs-gradle-plugin:4.8.0") // TODO: upgrade with gradle 7.x
implementation("org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.3")
api(kotlin("test"))
}
group = "org.terasology.gradology"