Switch to a license plugin for headers

This commit is contained in:
Kenzie Togami
2018-10-04 00:29:34 -07:00
parent b46b0c3801
commit 2cad9a2c09
7 changed files with 42 additions and 40 deletions

View File

@ -1,17 +1,3 @@
println """
*******************************************
You are building WorldEdit!
If you encounter trouble:
1) Read COMPILING.md if you haven't yet
2) Try running 'build' in a separate Gradle run
3) Use gradlew and not gradle
4) If you still need help, ask on IRC! irc.esper.net #sk89q
Output files will be in [subproject]/build/libs
*******************************************
"""
buildscript {
repositories {
mavenCentral()
@ -33,6 +19,24 @@ buildscript {
}
}
plugins {
id 'net.minecrell.licenser' version '0.4.1' apply false
}
println """
*******************************************
You are building WorldEdit!
If you encounter trouble:
1) Read COMPILING.md if you haven't yet
2) Try running 'build' in a separate Gradle run
3) Use gradlew and not gradle
4) If you still need help, ask on IRC! irc.esper.net #sk89q
Output files will be in [subproject]/build/libs
*******************************************
"""
allprojects {
group = 'com.sk89q.worldedit'
version = '7.0.0-SNAPSHOT'
@ -84,6 +88,7 @@ subprojects {
apply plugin: 'checkstyle'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'com.jfrog.artifactory'
apply plugin: 'net.minecrell.licenser'
ext.internalVersion = version + ";" + gitCommitHash
@ -148,4 +153,9 @@ subprojects {
artifactoryPublish {
publishConfigs('archives')
}
license {
header = rootProject.file("HEADER.txt")
include '**/*.java'
}
}