Skip to content

Commit 9393ed0

Browse files
committed
added lisence gradle plugin, thanks @kashike
1 parent df9fffb commit 9393ed0

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

HEADER

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
${description}
2+
Copyright (C) ${year} ${fullname}
3+
4+
This library is free software; you can redistribute it and/or
5+
modify it under the terms of the GNU Lesser General Public
6+
License as published by the Free Software Foundation; either
7+
version 2.1 of the License, or (at your option) any later version.
8+
9+
This library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12+
Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public
15+
License along with this library; if not, write to the Free Software
16+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
17+
USA

build.gradle

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ buildscript {
66
}
77
dependencies {
88
classpath "com.gradle.publish:plugin-publish-plugin:0.9.1"
9+
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0'
910
}
1011
}
1112

@@ -14,6 +15,7 @@ apply plugin: 'idea'
1415
apply plugin: 'eclipse'
1516
apply plugin: 'maven'
1617
apply plugin: "com.gradle.plugin-publish"
18+
apply plugin: 'license'
1719

1820
group = 'net.minecraftforge.gradle'
1921
version = '2.0-SNAPSHOT'
@@ -158,6 +160,27 @@ test {
158160
exclude "**/ExtensionMcpMappingTest*"
159161
}
160162

163+
license {
164+
ext {
165+
description = 'A Gradle plugin for the creation of Minecraft mods and MinecraftForge plugins.'
166+
year = '2013'
167+
fullname = 'Minecraft Forge'
168+
}
169+
header rootProject.file('HEADER')
170+
include '**net/minecraftforge/gradle/**/*.java'
171+
excludes ([
172+
'**net/minecraftforge/gradle/util/ZipFileTree.java',
173+
'**net/minecraftforge/gradle/util/json/version/*',
174+
'**net/minecraftforge/gradle/util/patching/Base64.java',
175+
'**net/minecraftforge/gradle/util/patching/ContextualPatch.java'
176+
])
177+
ignoreFailures false
178+
strictCheck true
179+
mapping {
180+
java = 'SLASHSTAR_STYLE'
181+
}
182+
}
183+
161184
pluginBundle {
162185
website = 'http://www.gradle.org/'
163186
vcsUrl = 'https://github.com/MinecraftForge/ForgeGradle'

0 commit comments

Comments
 (0)