diff options
| author | Krakenied <Krakenied1@gmail.com> | 2024-06-12 04:04:25 +0200 |
|---|---|---|
| committer | Krakenied <46192742+Krakenied@users.noreply.github.com> | 2024-08-28 11:37:11 +0200 |
| commit | de2b72083c83a9af9da33f89600aeb20a7225ce3 (patch) | |
| tree | 334a0dce43bc58a88bbfd870de7ba777af772b19 /build.gradle | |
| parent | 22d882e5ba4e2bb2b26660d19fd0c660959a712f (diff) | |
Rewrite Gradle files to use DSL which is actually supported by IDEs
Change the downgrader to a modern supported one
Diffstat (limited to 'build.gradle')
| -rw-r--r-- | build.gradle | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/build.gradle b/build.gradle deleted file mode 100644 index 3224ed45..00000000 --- a/build.gradle +++ /dev/null @@ -1,75 +0,0 @@ -import net.raphimc.javadowngrader.gradle.task.DowngradeJarTask - -plugins { - id 'java' - id 'io.github.goooler.shadow' version '8.1.7' - id 'net.raphimc.java-downgrader' version '1.1.2' - id 'maven-publish' -} - -defaultTasks 'allJar' - -allprojects { - apply plugin: 'java' - - group = 'com.leonardobishop' - version = '3.15' - - sourceCompatibility = 21 - targetCompatibility = 21 -} - -task allJar( type: Jar, dependsOn: subprojects.tasks['build'] ) { - if (project.findProperty('gitversion') == null || project.findProperty('gitversion') == 'true') { - ext.gitCommitHash = 'git rev-parse --verify --short HEAD'.execute().text.trim() - project.version = "${project.version}-${gitCommitHash}" - subprojects.each { - it.version = "${it.version}-${gitCommitHash}" - } - } - - subprojects.each { subproject -> - from subproject.configurations.archives.allArtifacts.files.collect { - zipTree(it) - } - } - archiveBaseName = 'Quests' -} - -tasks.register("java8Jar", DowngradeJarTask) { - input = tasks.jar.archiveFile.get().asFile - outputSuffix = "+java8" - compileClassPath = sourceSets.main.compileClasspath -}.get().dependsOn("allJar") -allJar.finalizedBy("java8Jar") - -artifacts { - archives allJar -} - -publishing { - publications { - maven(MavenPublication) { - groupId = 'com.leonardobishop' - artifactId = 'quests' - version = project.version - - artifact allJar - pom.withXml { - asNode().dependencies.dependency.each { dep -> - dep.parent().remove(dep) - } - } - } - } - - repositories { - maven { - credentials { - username = project.findProperty('mavenUser') ?: System.getenv('MAVEN_USER') - password = project.findProperty('mavenPassword') ?: System.getenv('MAVEN_PASSWORD') - } - url = "https://repo.leonardobishop.com/releases/" - } - } -} |
