diff --git a/build.gradle b/build.gradle index d65f996..cb791f9 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,7 @@ +plugins { + id "com.github.hierynomus.license" version "0.12.1" +} + apply plugin: 'java' apply plugin: 'eclipse' @@ -66,6 +70,12 @@ dependencies { compile 'org.slf4j:jul-to-slf4j:1.7.13' } +license { + header = file('gradle/license-header.txt') + ext.year = Calendar.getInstance().get(Calendar.YEAR) + ext.name = 'Christoph Pirkl' + ext.email = 'christoph at users.sourceforge.net' +} eclipse { classpath { diff --git a/gradle/license-header.txt b/gradle/license-header.txt index 952d680..7d3f5d2 100644 --- a/gradle/license-header.txt +++ b/gradle/license-header.txt @@ -1,5 +1,5 @@ A tool for managing port forwardings via UPnP -Copyright (C) 2015 Christoph Pirkl +Copyright (C) ${year} ${name} <${email}> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by