Skip to content

Commit

Permalink
Configure plugins using pluginManagement block
Browse files Browse the repository at this point in the history
Move group property to gradle.properties
Apply license headers
Exclude json & yaml files from license checks
Configure bintray plugin
  • Loading branch information
Andres Almiray committed Dec 10, 2019
1 parent fe6b14d commit 5b05ec4
Show file tree
Hide file tree
Showing 218 changed files with 3,701 additions and 22 deletions.
57 changes: 50 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,29 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2019 Vladimir Orany.
*
* 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
*
* https://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.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id 'org.kordamp.gradle.groovy-project' version '0.30.4'
id 'org.kordamp.gradle.bintray' version '0.30.4'
id 'com.github.kt3k.coveralls' version '2.8.4'
id 'org.kordamp.gradle.groovy-project'
id 'org.kordamp.gradle.bintray'
id 'com.github.kt3k.coveralls'
}

if (!project.hasProperty('bintrayUsername')) ext.bintrayUsername = '**UNDEFINED**'
if (!project.hasProperty('bintrayApiKey')) ext.bintrayApiKey = '**UNDEFINED**'

config {
release = (rootProject.findProperty('release') ?: false).toBoolean()

Expand All @@ -25,6 +45,17 @@ config {
roles = ['developer']
}
}

repositories {
repository {
name = 'localRelease'
url = "${project.rootProject.buildDir}/repos/local/release"
}
repository {
name = 'localSnapshot'
url = "${project.rootProject.buildDir}/repos/local/snapshot"
}
}
}

licensing {
Expand All @@ -35,28 +66,40 @@ config {
}
}

publishing {
signing = false
releasesRepository = 'localRelease'
snapshotsRepository = 'localSnapshot'
}

bintray {
credentials {
username = project.findProperty('bintrayUsername')
password = project.findProperty('bintrayApiKey')
username = bintrayUsername
password = bintrayApiKey
}
userOrg = 'agorapulse'
repo = 'libs'
githubRepo = 'agorapulse/micronaut-libraries'
name = rootProject.name
}
}

allprojects {
group 'com.agorapulse'
repositories {
jcenter()
mavenCentral()
maven { url "https://dl.bintray.com/agorapulse/libs" }
maven { url "https://repo.spring.io/release" }
}

license {
exclude '**/*.json'
exclude '***.yml'
}
}

subprojects { Project subproject ->
if (subproject.name == 'guide') return

apply plugin: 'io.spring.dependency-management'
apply plugin: 'groovy'
apply plugin: 'checkstyle'
Expand Down
17 changes: 17 additions & 0 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2019 Vladimir Orany.
*
* 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
*
* https://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.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
apply plugin: 'groovy'

repositories {
Expand Down
21 changes: 19 additions & 2 deletions docs/guide/guide.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2019 Vladimir Orany.
*
* 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
*
* https://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.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id 'org.kordamp.gradle.guide' version '0.30.4'
id 'org.ajoberstar.git-publish' version '2.1.1'
id 'org.kordamp.gradle.guide'
id 'org.ajoberstar.git-publish'
}

configurations {
Expand Down
17 changes: 17 additions & 0 deletions examples/gradle/lambda.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2019 Vladimir Orany.
*
* 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
*
* https://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.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
configurations {
lambda.extendsFrom runtime
testCompile.extendsFrom lambda
Expand Down
17 changes: 17 additions & 0 deletions examples/local-server/local-server.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2019 Vladimir Orany.
*
* 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
*
* https://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.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
apply plugin: "application"
apply plugin: "com.github.johnrengelman.shadow"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2019 Vladimir Orany.
*
* 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
*
* https://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.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.agorapulse.micronaut.http.examples

import io.micronaut.context.ApplicationContext
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2019 Vladimir Orany.
*
* 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
*
* https://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.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.agorapulse.micronaut.http.examples

import com.agorapulse.dru.DataSet
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2019 Vladimir Orany.
*
* 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
*
* https://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.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.agorapulse.micronaut.http.examples

import com.agorapulse.gru.Gru
Expand Down
17 changes: 17 additions & 0 deletions examples/planets/planets.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2019 Vladimir Orany.
*
* 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
*
* https://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.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import com.amazonaws.services.lambda.model.Runtime
import jp.classmethod.aws.gradle.lambda.AWSLambdaMigrateFunctionTask

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2019 Vladimir Orany.
*
* 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
*
* https://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.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.agorapulse.micronaut.http.examples.planets;

import com.amazonaws.serverless.exceptions.ContainerInitializationException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2019 Vladimir Orany.
*
* 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
*
* https://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.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.agorapulse.micronaut.http.examples.planets

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBHashKey
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2019 Vladimir Orany.
*
* 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
*
* https://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.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.agorapulse.micronaut.http.examples.planets

import io.micronaut.http.HttpStatus
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2019 Vladimir Orany.
*
* 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
*
* https://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.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.agorapulse.micronaut.http.examples.planets

import com.agorapulse.micronaut.aws.dynamodb.annotation.HashKey
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2019 Vladimir Orany.
*
* 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
*
* https://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.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.agorapulse.micronaut.http.examples.planets;

public class PlanetNotFoundException extends RuntimeException {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2019 Vladimir Orany.
*
* 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
*
* https://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.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.agorapulse.micronaut.http.examples.planets

import com.agorapulse.dru.Dru
Expand Down
Loading

0 comments on commit 5b05ec4

Please sign in to comment.