Skip to content

Commit 06f3e5b

Browse files
committed
Merge pull request #64 from aoberoi/add-license-header-plugin
Add license header plugin, fixes #33
2 parents 953df9f + 853f835 commit 06f3e5b

21 files changed

+143
-2
lines changed

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
plugins {
2+
id "com.github.hierynomus.license" version "0.11.0"
3+
}
4+
15
apply plugin: 'java'
26
apply plugin: 'maven'
37
apply plugin: 'signing'
@@ -47,6 +51,12 @@ dependencies {
4751
//compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.5'
4852
}
4953

54+
apply plugin: 'license'
55+
license {
56+
header rootProject.file('codequality/HEADER')
57+
ext.year = Calendar.getInstance().get(Calendar.YEAR)
58+
}
59+
5060
artifacts {
5161
archives javadocJar, sourcesJar
5262
}

codequality/HEADER

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
OpenTok Java SDK
2+
Copyright (C) ${year} TokBox, Inc.
3+
http://www.tokbox.com
4+
5+
Licensed under The MIT License (MIT). See LICENSE file for more information.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Apr 09 03:08:11 EDT 2014
1+
#Wed Feb 18 12:24:59 EST 2015
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=http\://services.gradle.org/distributions/gradle-1.9-bin.zip
6+
distributionUrl=http\://services.gradle.org/distributions/gradle-2.3-all.zip

src/main/java/com/opentok/Archive.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* OpenTok Java SDK
3+
* Copyright (C) 2015 TokBox, Inc.
4+
* http://www.tokbox.com
5+
*
6+
* Licensed under The MIT License (MIT). See LICENSE file for more information.
7+
*/
18
package com.opentok;
29

310
import com.fasterxml.jackson.annotation.JsonCreator;

src/main/java/com/opentok/MediaMode.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* OpenTok Java SDK
3+
* Copyright (C) 2015 TokBox, Inc.
4+
* http://www.tokbox.com
5+
*
6+
* Licensed under The MIT License (MIT). See LICENSE file for more information.
7+
*/
18
package com.opentok;
29

310
/**

src/main/java/com/opentok/OpenTok.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* OpenTok Java SDK
3+
* Copyright (C) 2015 TokBox, Inc.
4+
* http://www.tokbox.com
5+
*
6+
* Licensed under The MIT License (MIT). See LICENSE file for more information.
7+
*/
18
package com.opentok;
29

310
import java.io.IOException;

src/main/java/com/opentok/Role.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* OpenTok Java SDK
3+
* Copyright (C) 2015 TokBox, Inc.
4+
* http://www.tokbox.com
5+
*
6+
* Licensed under The MIT License (MIT). See LICENSE file for more information.
7+
*/
18
package com.opentok;
29
/**
310
* Defines values for the role parameter of the {@link TokenOptions.Builder#role(Role role)} method.

src/main/java/com/opentok/Session.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* OpenTok Java SDK
3+
* Copyright (C) 2015 TokBox, Inc.
4+
* http://www.tokbox.com
5+
*
6+
* Licensed under The MIT License (MIT). See LICENSE file for more information.
7+
*/
18
package com.opentok;
29

310
import java.io.UnsupportedEncodingException;

src/main/java/com/opentok/SessionProperties.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* OpenTok Java SDK
3+
* Copyright (C) 2015 TokBox, Inc.
4+
* http://www.tokbox.com
5+
*
6+
* Licensed under The MIT License (MIT). See LICENSE file for more information.
7+
*/
18
package com.opentok;
29

310
import com.opentok.exception.InvalidArgumentException;

src/main/java/com/opentok/TokenOptions.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* OpenTok Java SDK
3+
* Copyright (C) 2015 TokBox, Inc.
4+
* http://www.tokbox.com
5+
*
6+
* Licensed under The MIT License (MIT). See LICENSE file for more information.
7+
*/
18
package com.opentok;
29

310
import com.opentok.exception.InvalidArgumentException;

0 commit comments

Comments
 (0)