-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup build script Change published artifact to: net.minecraft:gradleutils Out maven repo is pretty dirty with case sensitive versions of this project, but this follows our expected standards. Remove TeamCity related things Add getPom() to the gradleutils extension to allow easier access.
- Loading branch information
Showing
15 changed files
with
61 additions
and
647 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,31 @@ | ||
plugins { | ||
id 'java-gradle-plugin' | ||
id 'org.cadixdev.licenser' version '0.6.1' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
java.toolchain.languageVersion = JavaLanguageVersion.of(8) | ||
|
||
dependencies { | ||
implementation 'org.eclipse.jgit:org.eclipse.jgit:5.10.0.202012080955-r' | ||
} | ||
|
||
license { | ||
header = new File(projectDir.parentFile, 'LICENSE-header.txt') | ||
newLine = false | ||
exclude '**/*.properties' | ||
} | ||
|
||
final extraResources = new File(layout.buildDirectory.getAsFile().get(), 'extraresources') | ||
|
||
sourceSets.main.resources.srcDir(extraResources) | ||
|
||
tasks.register('teamcityTemplateZip', Zip) { | ||
from(project.file('../teamcityTemplate')) | ||
archiveFileName.set('.teamcity.zip') | ||
destinationDirectory.set(extraResources) | ||
} | ||
|
||
tasks.named('processResources').configure { | ||
dependsOn 'teamcityTemplateZip' | ||
sourceSets { | ||
main { | ||
groovy { | ||
srcDirs = ['../src/main/groovy'] | ||
} | ||
} | ||
} | ||
|
||
tasks.named('classes').configure { | ||
dependsOn 'teamcityTemplateZip' | ||
gradlePlugin { | ||
plugins { | ||
gradleutils { | ||
id = 'net.minecraftforge.gradleutils' | ||
implementationClass = 'net.minecraftforge.gradleutils.GradleUtilsPlugin' | ||
} | ||
} | ||
} |
79 changes: 0 additions & 79 deletions
79
buildSrc/src/main/groovy/net/minecraftforge/gradleutils/PomUtils.groovy
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.