Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbb6ee6d

Browse files
committed
iluwatar#7 Add license headers to source code
1 parent170eda0 commitbb6ee6d

File tree

4 files changed

+71
-1
lines changed

4 files changed

+71
-1
lines changed

‎LICENSE‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 Ilkka Seppälä
3+
Copyright (c) 2017-2018 Ilkka Seppälä
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

‎build.gradle‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,18 @@
77
* user guide available at https://docs.gradle.org/2.8/userguide/tutorial_java_projects.html
88
*/
99

10+
plugins {
11+
id"com.github.hierynomus.license" version"0.14.0"
12+
}
13+
1014
// Apply the java plugin to add support for Java
1115
applyplugin:'java'
1216

17+
license {
18+
header project.file('LICENSE')
19+
include'**/*.java'
20+
}
21+
1322
// In this section you declare where to find the dependencies of your project
1423
repositories {
1524
// Use 'jcenter' for resolving your dependencies.
@@ -28,3 +37,18 @@ dependencies {
2837
// 'test.useTestNG()' to your build script.
2938
testCompile'junit:junit:4.12'
3039
}
40+
41+
tasklicenseFormatJava(type:nl.javadude.gradle.plugins.license.License) {
42+
source= fileTree('src/main/java')
43+
}
44+
45+
tasklicenseTestJava(type:nl.javadude.gradle.plugins.license.License) {
46+
source= fileTree('src/main/java')
47+
check=true
48+
}
49+
50+
licenseFormatMain.enabled=false
51+
licenseMain.enabled=false
52+
53+
licenseFormat.dependsOn licenseFormatJava
54+
licenseTest.dependsOn licenseTestJava

‎src/main/java/Library.java‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
/**
2+
* MIT License
3+
*
4+
* Copyright (c) 2017-2018 Ilkka Seppälä
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*/
124
importjavax.imageio.ImageIO;
225
importjava.awt.*;
326
importjava.awt.image.BufferedImage;

‎src/test/java/LibraryTest.java‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
/**
2+
* MIT License
3+
*
4+
* Copyright (c) 2017-2018 Ilkka Seppälä
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*/
124
importorg.junit.Test;
225

326
importjava.awt.*;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp