Move license header to wherehows-docs & update documentation (#698)

Fix license checking for Play-based projects and fix violated files
This commit is contained in:
Mars Lan 2017-08-22 21:32:53 -07:00 committed by GitHub
parent 4b30623fa0
commit 03ba2bc85e
9 changed files with 58 additions and 7 deletions

View File

@ -1,6 +1,6 @@
apply plugin: 'license'
ext.licenseFile = file('.license_header.txt')
ext.licenseFile = file('wherehows-docs/license_header.txt')
subprojects {
apply plugin: 'com.github.hierynomus.license'

View File

@ -4,6 +4,15 @@ tasks.withType(PlayRun) {
httpPort = project.ext.httpPort
}
// Manually define a sourceSet for license checking
sourceSets {
licsense {
java {
srcDirs = ['app', 'test']
}
}
}
model {
components {
play {

View File

@ -1,12 +1,12 @@
/**
* Copyright 2015 LinkedIn Corp. All rights reserved.
* <p>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
*
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

View File

@ -1,6 +1,9 @@
# Code formatting
Use standard [LinkedIn code style](LinkedIn%20Style.xml) in IntelliJ to format the code.
# License Header
Please add the [Apache License Header](license_header.txt) to all source files. You can automate this using the `licenseFormat` gradle task.
# Testing
> Note: Info here is for pre-v1.0.0 and will need to be updated

View File

@ -1,12 +1,12 @@
/**
* Copyright 2015 LinkedIn Corp. All rights reserved.
* <p>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
*
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

View File

@ -1,3 +1,16 @@
/**
* Copyright 2015 LinkedIn Corp. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
import org.junit.*;
import play.twirl.api.Content;

View File

@ -1,3 +1,16 @@
/**
* Copyright 2015 LinkedIn Corp. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ArrayNode;

View File

@ -1,3 +1,16 @@
/**
* Copyright 2015 LinkedIn Corp. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
import org.junit.*;
import play.libs.ws.WS;