Skip to content

Commit

Permalink
Configure license plugin, use placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Dec 26, 2015
1 parent 800b670 commit 6140b35
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions build.gradle
@@ -1,3 +1,7 @@
plugins {
id "com.github.hierynomus.license" version "0.12.1"
}

apply plugin: 'java'
apply plugin: 'eclipse'

Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down

0 comments on commit 6140b35

Please sign in to comment.