It works kinda

This commit is contained in:
jmp committed 2021-05-07 18:10:42 -07:00
1 parent ace3a496ef
commit ecb80cef34
23 files changed
+407 -264

No files matched your search

+51 -37
View File
@@ -1,62 +1,69 @@
import org.checkerframework.gradle.plugin.CheckerFrameworkPlugin
import net.draycia.carbon.*
//import org.checkerframework.gradle.plugin.CheckerFrameworkPlugin
plugins {
java
`java-library`
`maven-publish`
checkstyle
id("org.checkerframework") version "0.5.12"
id("com.github.johnrengelman.shadow") version "7.0.0" apply false
//checkstyle
//id("org.checkerframework") version "0.5.12"
}
ext["github"] = "https://github.com/Hexaoxide/Carbon"
val projectVersion: String by project
allprojects {
group = "net.draycia"
description = "CarbonChat"
version = project.property("projectVersion") // TODO: include git hash
description = "CarbonChat - A modern chat plugin"
version = projectVersion // todo: include git hash
}
allprojects {
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = sourceCompatibility
disableAutoTargetJvm()
}
//configure<JavaPluginConvention> {
// sourceCompatibility = JavaVersion.VERSION_11
// targetCompatibility = sourceCompatibility
// disableAutoTargetJvm()
//}
checkstyle {
toolVersion = "8.36.2"
val configRoot = rootProject.projectDir
configDirectory.set(configRoot)
configProperties["basedir"] = configRoot.absolutePath
}
//checkstyle {
// toolVersion = "8.36.2"
// val configRoot = rootProject.projectDir
// configDirectory.set(configRoot)
// configProperties["basedir"] = configRoot.absolutePath
//}
}
subprojects {
apply {
plugin<JavaPlugin>()
plugin<JavaLibraryPlugin>()
plugin<MavenPublishPlugin>()
plugin<CheckstylePlugin>()
plugin<CheckerFrameworkPlugin>()
}
apply<JavaLibraryPlugin>()
apply<MavenPublishPlugin>()
//apply<CheckstylePlugin>()
//apply<CheckerFrameworkPlugin>()
repositories {
mavenCentral()
maven { url = uri("https://nexus.proximyst.com/repository/maven-public/") }
maven { url = uri("https://repo.maven.apache.org/maven2") }
maven { url = uri("https://oss.sonatype.org/content/groups/public/") }
maven { url = uri("https://maven.enginehub.org/repo/") }
maven { url = uri("https://papermc.io/repo/repository/maven-public/") }
maven { url = uri("https://repo.extendedclip.com/content/repositories/placeholderapi/") }
maven { url = uri("https://jitpack.io") }
maven { url = uri("https://dl.bintray.com/ichbinjoe/public/") }
maven { url = uri("https://repo.codemc.org/repository/maven-public/") }
maven { url = uri("https://repo.glaremasters.me/repository/public/") }
maven { url = uri("https://repo.aikar.co/content/groups/aikar/") }
maven("https://nexus.proximyst.com/repository/maven-public/")
maven("https://repo.maven.apache.org/maven2")
maven("https://oss.sonatype.org/content/groups/public/")
//maven("https://repo.incendo.org/content/repositories/snapshots") // normal cloud snapshot repo
maven("https://repo.jpenilla.xyz/snapshots/") { // temp cloud snapshot repo for sponge-8
content {
includeGroup("cloud.commandframework")
}
}
maven("https://maven.enginehub.org/repo/")
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
maven("https://jitpack.io")
maven("https://dl.bintray.com/ichbinjoe/public/")
maven("https://repo.codemc.org/repository/maven-public/")
maven("https://repo.glaremasters.me/repository/public/")
maven("https://repo.aikar.co/content/groups/aikar/")
}
dependencies {
checkstyle("ca.stellardrift:stylecheck:$STYLECHECK_VER")
//checkstyle("ca.stellardrift:stylecheck:$STYLECHECK_VER")
}
// checkerFramework {
@@ -65,3 +72,10 @@ subprojects {
// ]
// }
}
tasks {
// Root project has no useful artifacts
withType<Jar> {
onlyIf { false }
}
}