Switch to a license plugin for headers
This commit is contained in:
38
build.gradle
38
build.gradle
@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user