From 49ffc02627f40939a88eff4b577fca8cdc542ae8 Mon Sep 17 00:00:00 2001 From: Yurii Sergiichuk Date: Tue, 15 Dec 2020 18:27:11 +0200 Subject: [PATCH 1/8] Update `config` module --- .idea/copyright/TeamDev_Open_Source.xml | 2 +- buildSrc/build.gradle.kts | 6 ++++++ .../io/spine/gradle/internal/CheckVersionIncrement.kt | 6 ++++++ .../main/kotlin/io/spine/gradle/internal/IncrementGuard.kt | 6 ++++++ .../src/main/kotlin/io/spine/gradle/internal/RunBuild.kt | 6 ++++++ buildSrc/src/main/kotlin/io/spine/gradle/internal/deps.kt | 6 ++++++ config | 2 +- 7 files changed, 32 insertions(+), 2 deletions(-) diff --git a/.idea/copyright/TeamDev_Open_Source.xml b/.idea/copyright/TeamDev_Open_Source.xml index 10ab8291..14d7385e 100644 --- a/.idea/copyright/TeamDev_Open_Source.xml +++ b/.idea/copyright/TeamDev_Open_Source.xml @@ -1,6 +1,6 @@ + diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index 60e0fb21..2044a5df 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/buildSrc/src/main/kotlin/io/spine/gradle/internal/CheckVersionIncrement.kt b/buildSrc/src/main/kotlin/io/spine/gradle/internal/CheckVersionIncrement.kt index 8f33cde9..a6b8ac0d 100644 --- a/buildSrc/src/main/kotlin/io/spine/gradle/internal/CheckVersionIncrement.kt +++ b/buildSrc/src/main/kotlin/io/spine/gradle/internal/CheckVersionIncrement.kt @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/buildSrc/src/main/kotlin/io/spine/gradle/internal/IncrementGuard.kt b/buildSrc/src/main/kotlin/io/spine/gradle/internal/IncrementGuard.kt index 406f71fd..423cfb41 100644 --- a/buildSrc/src/main/kotlin/io/spine/gradle/internal/IncrementGuard.kt +++ b/buildSrc/src/main/kotlin/io/spine/gradle/internal/IncrementGuard.kt @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/buildSrc/src/main/kotlin/io/spine/gradle/internal/RunBuild.kt b/buildSrc/src/main/kotlin/io/spine/gradle/internal/RunBuild.kt index 62c3a77a..25d177a5 100644 --- a/buildSrc/src/main/kotlin/io/spine/gradle/internal/RunBuild.kt +++ b/buildSrc/src/main/kotlin/io/spine/gradle/internal/RunBuild.kt @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/buildSrc/src/main/kotlin/io/spine/gradle/internal/deps.kt b/buildSrc/src/main/kotlin/io/spine/gradle/internal/deps.kt index 9cbdc172..0b618cfa 100644 --- a/buildSrc/src/main/kotlin/io/spine/gradle/internal/deps.kt +++ b/buildSrc/src/main/kotlin/io/spine/gradle/internal/deps.kt @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/config b/config index 767dfbc0..c74b74f0 160000 --- a/config +++ b/config @@ -1 +1 @@ -Subproject commit 767dfbc093bb99c44e631034b1c69cbc58bc3536 +Subproject commit c74b74f04e808224bcfb0ed2e7a4be925de5d273 From eca6d826d30e1462ad624c916e824a8c1935076d Mon Sep 17 00:00:00 2001 From: Yurii Sergiichuk Date: Tue, 15 Dec 2020 18:29:11 +0200 Subject: [PATCH 2/8] Drop obsolete codacy config. We no longer use codacy. --- .codacy.yaml | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 .codacy.yaml diff --git a/.codacy.yaml b/.codacy.yaml deleted file mode 100644 index 843ca359..00000000 --- a/.codacy.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -exclude_paths: - - "**/src/test/**/*.*" From 8b119da64b2d45be0bad5f0b2f43d617604743aa Mon Sep 17 00:00:00 2001 From: Yurii Sergiichuk Date: Tue, 15 Dec 2020 18:33:34 +0200 Subject: [PATCH 3/8] Bump version to 1.7.0 --- version.gradle.kts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/version.gradle.kts b/version.gradle.kts index 72955f5a..9005ad3e 100644 --- a/version.gradle.kts +++ b/version.gradle.kts @@ -29,9 +29,9 @@ * already in the root directory. */ -val spineBaseVersion: String by extra("1.6.16") -val spineTimeVersion: String by extra("1.6.16") -val spineVersion: String by extra("1.6.18") -val spineWebVersion: String by extra("1.6.16") -val spineGCloudVersion: String by extra("1.6.16") -val pluginVersion: String by extra("1.6.16") +val spineVersion: String by extra("1.7.0") +val spineBaseVersion: String by extra(spineVersion) +val spineTimeVersion: String by extra(spineVersion) +val spineWebVersion: String by extra(spineVersion) +val spineGCloudVersion: String by extra(spineVersion) +val pluginVersion: String by extra(spineVersion) From 626798ed1a670c70fda1f6d49ecf4fe53ef15575 Mon Sep 17 00:00:00 2001 From: Yurii Sergiichuk Date: Tue, 15 Dec 2020 18:36:59 +0200 Subject: [PATCH 4/8] Update copyright disclaimer. --- .gitignore | 6 +++++ build.gradle.kts | 6 +++++ .../main/kotlin/bootstrap-plugin.gradle.kts | 6 +++++ .../prepare-config-resources.gradle.kts | 6 +++++ gradle.properties | 6 +++++ plugin/build.gradle.kts | 6 +++++ .../gradle/bootstrap/BootstrapPlugin.java | 6 +++++ .../gradle/bootstrap/CodeGenExtension.java | 6 +++++ .../tools/gradle/bootstrap/DartExtension.java | 6 +++++ .../tools/gradle/bootstrap/DartTaskName.java | 6 +++++ .../tools/gradle/bootstrap/Extension.java | 6 +++++ .../bootstrap/JavaCodegenExtension.java | 6 +++++ .../tools/gradle/bootstrap/JavaExtension.java | 6 +++++ .../gradle/bootstrap/JavaScriptExtension.java | 6 +++++ .../gradle/bootstrap/ModelExtension.java | 6 +++++ .../gradle/bootstrap/SpineBasedProject.java | 6 +++++ .../gradle/bootstrap/SpinePluginScripts.java | 6 +++++ .../gradle/bootstrap/SpinePluginTarget.java | 6 +++++ .../tools/gradle/bootstrap/package-info.java | 6 +++++ .../tools/gradle/config/ArtifactSnapshot.java | 6 +++++ .../tools/gradle/config/SpineDependency.java | 6 +++++ .../tools/gradle/config/package-info.java | 6 +++++ .../gradle/protoc/ProtobufGenerator.java | 6 +++++ .../tools/gradle/protoc/ProtocPlugin.java | 6 +++++ .../tools/gradle/protoc/package-info.java | 6 +++++ plugin/src/test/build.gradle.template | 6 +++++ .../gradle/bootstrap/BootstrapPluginTest.java | 6 +++++ .../tools/gradle/bootstrap/ExtensionTest.java | 6 +++++ .../func/SpineBootstrapPluginTest.java | 6 +++++ .../gradle/bootstrap/func/package-info.java | 6 +++++ .../gradle/bootstrap/given/FakeArtifacts.java | 6 +++++ .../gradle/bootstrap/given/package-info.java | 6 +++++ .../tools/gradle/protoc/ProtocPluginTest.java | 6 +++++ .../given/TestPluginOptionsContainer.java | 6 +++++ .../gradle/protoc/given/package-info.java | 6 +++++ .../func-test/src/main/proto/client.proto | 25 +++++++++++++++++++ .../func-test/src/main/proto/restaurant.proto | 25 +++++++++++++++++++ .../main/proto/restaurant_rejections.proto | 25 +++++++++++++++++++ .../src/main/proto/roller_coaster.proto | 25 +++++++++++++++++++ .../func-test/src/main/proto/server.proto | 25 +++++++++++++++++++ settings.gradle.kts | 6 +++++ version.gradle.kts | 6 +++++ 42 files changed, 347 insertions(+) diff --git a/.gitignore b/.gitignore index 2913aca3..952094a6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,12 @@ # # Copyright 2020, TeamDev. 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 +# # Redistribution and use in source and/or binary forms, with or without # modification, must retain the above copyright notice and the following # disclaimer. diff --git a/build.gradle.kts b/build.gradle.kts index aefa5de3..79b0f4cd 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/buildSrc/src/main/kotlin/bootstrap-plugin.gradle.kts b/buildSrc/src/main/kotlin/bootstrap-plugin.gradle.kts index 1a875f1f..03d74024 100644 --- a/buildSrc/src/main/kotlin/bootstrap-plugin.gradle.kts +++ b/buildSrc/src/main/kotlin/bootstrap-plugin.gradle.kts @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/buildSrc/src/main/kotlin/prepare-config-resources.gradle.kts b/buildSrc/src/main/kotlin/prepare-config-resources.gradle.kts index 62762495..a05cb9fd 100644 --- a/buildSrc/src/main/kotlin/prepare-config-resources.gradle.kts +++ b/buildSrc/src/main/kotlin/prepare-config-resources.gradle.kts @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/gradle.properties b/gradle.properties index 33d60558..3f404e75 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,12 @@ # # Copyright 2020, TeamDev. 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 +# # Redistribution and use in source and/or binary forms, with or without # modification, must retain the above copyright notice and the following # disclaimer. diff --git a/plugin/build.gradle.kts b/plugin/build.gradle.kts index cbd82a6d..9d848aee 100644 --- a/plugin/build.gradle.kts +++ b/plugin/build.gradle.kts @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/BootstrapPlugin.java b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/BootstrapPlugin.java index 6d543a98..50c5095b 100644 --- a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/BootstrapPlugin.java +++ b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/BootstrapPlugin.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/CodeGenExtension.java b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/CodeGenExtension.java index a87c9f1d..d9986f97 100644 --- a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/CodeGenExtension.java +++ b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/CodeGenExtension.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/DartExtension.java b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/DartExtension.java index aed5f20e..f8c8d29b 100644 --- a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/DartExtension.java +++ b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/DartExtension.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/DartTaskName.java b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/DartTaskName.java index cf5e8f8b..67cfe452 100644 --- a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/DartTaskName.java +++ b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/DartTaskName.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/Extension.java b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/Extension.java index 50e11dac..b52387ff 100644 --- a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/Extension.java +++ b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/Extension.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/JavaCodegenExtension.java b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/JavaCodegenExtension.java index 1e56fe85..f6d16f4b 100644 --- a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/JavaCodegenExtension.java +++ b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/JavaCodegenExtension.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/JavaExtension.java b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/JavaExtension.java index 405a3659..7c36e972 100644 --- a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/JavaExtension.java +++ b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/JavaExtension.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/JavaScriptExtension.java b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/JavaScriptExtension.java index 8903442b..e9cc6242 100644 --- a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/JavaScriptExtension.java +++ b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/JavaScriptExtension.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/ModelExtension.java b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/ModelExtension.java index 56b5ab52..32d6f0d4 100644 --- a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/ModelExtension.java +++ b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/ModelExtension.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/SpineBasedProject.java b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/SpineBasedProject.java index 86d8e58a..e6db69b6 100644 --- a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/SpineBasedProject.java +++ b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/SpineBasedProject.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/SpinePluginScripts.java b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/SpinePluginScripts.java index 64c13d0f..dd9bc6b0 100644 --- a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/SpinePluginScripts.java +++ b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/SpinePluginScripts.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/SpinePluginTarget.java b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/SpinePluginTarget.java index 2a121a15..3df30b11 100644 --- a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/SpinePluginTarget.java +++ b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/SpinePluginTarget.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/package-info.java b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/package-info.java index 7ff7ef64..0b8292e7 100644 --- a/plugin/src/main/java/io/spine/tools/gradle/bootstrap/package-info.java +++ b/plugin/src/main/java/io/spine/tools/gradle/bootstrap/package-info.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/main/java/io/spine/tools/gradle/config/ArtifactSnapshot.java b/plugin/src/main/java/io/spine/tools/gradle/config/ArtifactSnapshot.java index 6712e0a2..798a9f23 100644 --- a/plugin/src/main/java/io/spine/tools/gradle/config/ArtifactSnapshot.java +++ b/plugin/src/main/java/io/spine/tools/gradle/config/ArtifactSnapshot.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/main/java/io/spine/tools/gradle/config/SpineDependency.java b/plugin/src/main/java/io/spine/tools/gradle/config/SpineDependency.java index 2c619f7a..3063e25a 100644 --- a/plugin/src/main/java/io/spine/tools/gradle/config/SpineDependency.java +++ b/plugin/src/main/java/io/spine/tools/gradle/config/SpineDependency.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/main/java/io/spine/tools/gradle/config/package-info.java b/plugin/src/main/java/io/spine/tools/gradle/config/package-info.java index 7608cbc3..d37ffaf2 100644 --- a/plugin/src/main/java/io/spine/tools/gradle/config/package-info.java +++ b/plugin/src/main/java/io/spine/tools/gradle/config/package-info.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/main/java/io/spine/tools/gradle/protoc/ProtobufGenerator.java b/plugin/src/main/java/io/spine/tools/gradle/protoc/ProtobufGenerator.java index e91d727e..891e2308 100644 --- a/plugin/src/main/java/io/spine/tools/gradle/protoc/ProtobufGenerator.java +++ b/plugin/src/main/java/io/spine/tools/gradle/protoc/ProtobufGenerator.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/main/java/io/spine/tools/gradle/protoc/ProtocPlugin.java b/plugin/src/main/java/io/spine/tools/gradle/protoc/ProtocPlugin.java index 59f4a3df..08dfef75 100644 --- a/plugin/src/main/java/io/spine/tools/gradle/protoc/ProtocPlugin.java +++ b/plugin/src/main/java/io/spine/tools/gradle/protoc/ProtocPlugin.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/main/java/io/spine/tools/gradle/protoc/package-info.java b/plugin/src/main/java/io/spine/tools/gradle/protoc/package-info.java index 237aadaf..3f92d783 100644 --- a/plugin/src/main/java/io/spine/tools/gradle/protoc/package-info.java +++ b/plugin/src/main/java/io/spine/tools/gradle/protoc/package-info.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/test/build.gradle.template b/plugin/src/test/build.gradle.template index f977bb57..3168a771 100644 --- a/plugin/src/test/build.gradle.template +++ b/plugin/src/test/build.gradle.template @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/test/java/io/spine/tools/gradle/bootstrap/BootstrapPluginTest.java b/plugin/src/test/java/io/spine/tools/gradle/bootstrap/BootstrapPluginTest.java index bbc6964b..4fab66ae 100644 --- a/plugin/src/test/java/io/spine/tools/gradle/bootstrap/BootstrapPluginTest.java +++ b/plugin/src/test/java/io/spine/tools/gradle/bootstrap/BootstrapPluginTest.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/test/java/io/spine/tools/gradle/bootstrap/ExtensionTest.java b/plugin/src/test/java/io/spine/tools/gradle/bootstrap/ExtensionTest.java index ebb7d4f6..74c7a740 100644 --- a/plugin/src/test/java/io/spine/tools/gradle/bootstrap/ExtensionTest.java +++ b/plugin/src/test/java/io/spine/tools/gradle/bootstrap/ExtensionTest.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/test/java/io/spine/tools/gradle/bootstrap/func/SpineBootstrapPluginTest.java b/plugin/src/test/java/io/spine/tools/gradle/bootstrap/func/SpineBootstrapPluginTest.java index e0816280..2f7fb620 100644 --- a/plugin/src/test/java/io/spine/tools/gradle/bootstrap/func/SpineBootstrapPluginTest.java +++ b/plugin/src/test/java/io/spine/tools/gradle/bootstrap/func/SpineBootstrapPluginTest.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/test/java/io/spine/tools/gradle/bootstrap/func/package-info.java b/plugin/src/test/java/io/spine/tools/gradle/bootstrap/func/package-info.java index 430d2012..898b01f6 100644 --- a/plugin/src/test/java/io/spine/tools/gradle/bootstrap/func/package-info.java +++ b/plugin/src/test/java/io/spine/tools/gradle/bootstrap/func/package-info.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/test/java/io/spine/tools/gradle/bootstrap/given/FakeArtifacts.java b/plugin/src/test/java/io/spine/tools/gradle/bootstrap/given/FakeArtifacts.java index 183ffe24..9c6090b4 100644 --- a/plugin/src/test/java/io/spine/tools/gradle/bootstrap/given/FakeArtifacts.java +++ b/plugin/src/test/java/io/spine/tools/gradle/bootstrap/given/FakeArtifacts.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/test/java/io/spine/tools/gradle/bootstrap/given/package-info.java b/plugin/src/test/java/io/spine/tools/gradle/bootstrap/given/package-info.java index 6f099b15..e12316d7 100644 --- a/plugin/src/test/java/io/spine/tools/gradle/bootstrap/given/package-info.java +++ b/plugin/src/test/java/io/spine/tools/gradle/bootstrap/given/package-info.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/test/java/io/spine/tools/gradle/protoc/ProtocPluginTest.java b/plugin/src/test/java/io/spine/tools/gradle/protoc/ProtocPluginTest.java index 4a0bc486..34316a49 100644 --- a/plugin/src/test/java/io/spine/tools/gradle/protoc/ProtocPluginTest.java +++ b/plugin/src/test/java/io/spine/tools/gradle/protoc/ProtocPluginTest.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/test/java/io/spine/tools/gradle/protoc/given/TestPluginOptionsContainer.java b/plugin/src/test/java/io/spine/tools/gradle/protoc/given/TestPluginOptionsContainer.java index 0f7d1cdd..92aaf860 100644 --- a/plugin/src/test/java/io/spine/tools/gradle/protoc/given/TestPluginOptionsContainer.java +++ b/plugin/src/test/java/io/spine/tools/gradle/protoc/given/TestPluginOptionsContainer.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/test/java/io/spine/tools/gradle/protoc/given/package-info.java b/plugin/src/test/java/io/spine/tools/gradle/protoc/given/package-info.java index 458d8342..310d78a2 100644 --- a/plugin/src/test/java/io/spine/tools/gradle/protoc/given/package-info.java +++ b/plugin/src/test/java/io/spine/tools/gradle/protoc/given/package-info.java @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/plugin/src/test/resources/func-test/src/main/proto/client.proto b/plugin/src/test/resources/func-test/src/main/proto/client.proto index 0220a0a2..75b58f45 100644 --- a/plugin/src/test/resources/func-test/src/main/proto/client.proto +++ b/plugin/src/test/resources/func-test/src/main/proto/client.proto @@ -1,3 +1,28 @@ +/* + * Copyright 2020, TeamDev. 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 + * + * Redistribution and use in source and/or binary forms, with or without + * modification, must retain the above copyright notice and the following + * disclaimer. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ syntax = "proto3"; package spine.tools.bootstrap.test; diff --git a/plugin/src/test/resources/func-test/src/main/proto/restaurant.proto b/plugin/src/test/resources/func-test/src/main/proto/restaurant.proto index d52d38b6..a57b0cbf 100644 --- a/plugin/src/test/resources/func-test/src/main/proto/restaurant.proto +++ b/plugin/src/test/resources/func-test/src/main/proto/restaurant.proto @@ -1,3 +1,28 @@ +/* + * Copyright 2020, TeamDev. 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 + * + * Redistribution and use in source and/or binary forms, with or without + * modification, must retain the above copyright notice and the following + * disclaimer. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ syntax = "proto3"; package spine.tools.bootstrap.test; diff --git a/plugin/src/test/resources/func-test/src/main/proto/restaurant_rejections.proto b/plugin/src/test/resources/func-test/src/main/proto/restaurant_rejections.proto index 6435819c..e1e19559 100644 --- a/plugin/src/test/resources/func-test/src/main/proto/restaurant_rejections.proto +++ b/plugin/src/test/resources/func-test/src/main/proto/restaurant_rejections.proto @@ -1,3 +1,28 @@ +/* + * Copyright 2020, TeamDev. 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 + * + * Redistribution and use in source and/or binary forms, with or without + * modification, must retain the above copyright notice and the following + * disclaimer. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ syntax = "proto3"; package spine.tools.bootstrap.test; diff --git a/plugin/src/test/resources/func-test/src/main/proto/roller_coaster.proto b/plugin/src/test/resources/func-test/src/main/proto/roller_coaster.proto index a9593107..5b6c04bb 100644 --- a/plugin/src/test/resources/func-test/src/main/proto/roller_coaster.proto +++ b/plugin/src/test/resources/func-test/src/main/proto/roller_coaster.proto @@ -1,3 +1,28 @@ +/* + * Copyright 2020, TeamDev. 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 + * + * Redistribution and use in source and/or binary forms, with or without + * modification, must retain the above copyright notice and the following + * disclaimer. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ syntax = "proto3"; package spine.tools.bootstrap.test; diff --git a/plugin/src/test/resources/func-test/src/main/proto/server.proto b/plugin/src/test/resources/func-test/src/main/proto/server.proto index 942ac982..1d56f21d 100644 --- a/plugin/src/test/resources/func-test/src/main/proto/server.proto +++ b/plugin/src/test/resources/func-test/src/main/proto/server.proto @@ -1,3 +1,28 @@ +/* + * Copyright 2020, TeamDev. 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 + * + * Redistribution and use in source and/or binary forms, with or without + * modification, must retain the above copyright notice and the following + * disclaimer. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ syntax = "proto3"; package spine.tools.bootstrap.test; diff --git a/settings.gradle.kts b/settings.gradle.kts index 45df199e..49b7cf87 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. diff --git a/version.gradle.kts b/version.gradle.kts index 9005ad3e..822535a1 100644 --- a/version.gradle.kts +++ b/version.gradle.kts @@ -1,6 +1,12 @@ /* * Copyright 2020, TeamDev. 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 + * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. From 32563d5927d914b26bd4779d28f8466b3ea0591c Mon Sep 17 00:00:00 2001 From: Yurii Sergiichuk Date: Tue, 15 Dec 2020 18:45:23 +0200 Subject: [PATCH 5/8] Update reports. --- license-report.md | 4 ++-- pom.xml | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/license-report.md b/license-report.md index 1b860b51..f17aebf8 100644 --- a/license-report.md +++ b/license-report.md @@ -1,6 +1,6 @@ -# Dependencies of `io.spine.tools:spine-plugin:1.6.16` +# Dependencies of `io.spine.tools:spine-plugin:1.7.0` ## Runtime 1. **Group:** com.google.code.findbugs **Name:** jsr305 **Version:** 3.0.2 @@ -335,4 +335,4 @@ The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Wed Dec 09 12:01:33 EET 2020** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). \ No newline at end of file +This report was generated on **Tue Dec 15 18:38:01 EET 2020** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). \ No newline at end of file diff --git a/pom.xml b/pom.xml index 0495d97a..e3b52b96 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ all modules and does not describe the project structure per-subproject. io.spine.tools spine-bootstrap -1.6.16 +1.7.0 2015 @@ -40,31 +40,31 @@ all modules and does not describe the project structure per-subproject. io.spine spine-base - 1.6.16 + 1.7.0 compile io.spine.tools spine-model-compiler - 1.6.16 + 1.7.0 compile io.spine.tools spine-plugin-base - 1.6.16 + 1.7.0 compile io.spine.tools spine-proto-dart-plugin - 1.6.16 + 1.7.0 compile io.spine.tools spine-proto-js-plugin - 1.6.16 + 1.7.0 compile @@ -94,13 +94,13 @@ all modules and does not describe the project structure per-subproject. io.spine spine-testlib - 1.6.16 + 1.7.0 test io.spine.tools spine-plugin-testlib - 1.6.16 + 1.7.0 test From 36dc90b6acae2c00ecf53e8dc99cab18c4398edf Mon Sep 17 00:00:00 2001 From: Yurii Sergiichuk Date: Tue, 15 Dec 2020 18:54:10 +0200 Subject: [PATCH 6/8] Cleanup readme and fix misprints. --- README.md | 43 +++++++++++++++++++++++++++++++------------ 1 file changed, 31 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 25be3f45..a2a882b5 100644 --- a/README.md +++ b/README.md @@ -1,52 +1,66 @@ # bootstrap -[![Build Status](https://travis-ci.com/SpineEventEngine/bootstrap.svg?branch=master)](https://travis-ci.com/SpineEventEngine/bootstrap) +[![Build Status][badge]](https://travis-ci.com/SpineEventEngine/bootstrap) The Gradle plugin for bootstrapping projects built with Spine. +[badge]: https://travis-ci.com/SpineEventEngine/bootstrap.svg?branch=master + ## Applying to the project In order to apply the plugin to a Gradle project, in `build.gralde` add the following config: + ```gradle plugins { id("io.spine.tools.gradle.bootstrap").version("1.6.0") } ``` -See [this Gradle doc](https://docs.gradle.org/current/userguide/plugins.html#sec:subprojects_plugins_dsl) -on how to apply a plugin only to certain to subprojects. +See [this Gradle doc][gradle-plugins-dsl] on how to apply a plugin only to certain to subprojects. + +[gradle-plugins-dsl]: https://docs.gradle.org/current/userguide/plugins.html#sec:subprojects_plugins_dsl ## Java Projects In order to mark a (sub-)project as a Java project for Spine, apply the following config: + ```gradle spine.enableJava() ``` This configuration: + - applies `java` Gradle plugin; + - applies `com.google.protobuf` Gradle plugin; + - configures Java code generation from Protobuf; + - adds a dependency onto the `io.spine:spine-base` module; + - applies the Spine Model Compiler plugin and performs its minimal configuration. More often than not, a user would also like to mark a Java project as a client or a server module. To do that, apply the following configuration: - - for client modules: -```gradle -spine.enableJava().client() -``` - - for server modules: -```gradle -spine.enableJava().server() -``` + +- for client modules: + + ```gradle + spine.enableJava().client() + ``` + +- for server modules: + ```gradle + spine.enableJava().server() + ``` This config will add required dependencies for developing a Spine-based Java client and server respectively. ### Obtaining the version when adding other dependencies -In order to use the same version for other Spine libraries, please use `sine.version()`. For example, adding testing utilities would look like this: +In order to use the same version for other Spine libraries, please use `spine.version()`. +For example, adding testing utilities would look like this: ```gradle dependencies { @@ -62,6 +76,7 @@ Spine relies on [gRPC](https://grpc.io/). All the required gRPC Java stubs and services are already included into the Spine artifacts. However, if users would like to declare gRPC services of their own, they may use the following configuration to set up the generation seamlessly: + ```gradle spine.enableJava { codegen { @@ -81,6 +96,7 @@ is not added by default in order not to cause clashes in the user projects. Sometimes, the users might not want any Java code to be generated. For such cases, the plugin provides following configuration opportunity: + ```gradle spine.enableJava { codegen { @@ -89,11 +105,13 @@ spine.enableJava { } } ``` + This way, no Java code will be generated at all, including Protobuf messages, gRPC services, validating builders, and rejections. A user also may leave the Java Protobuf codegen enabled, but only turn off Spine-specific code generation: + ```gradle spine.enableJava { codegen { @@ -105,6 +123,7 @@ spine.enableJava { ## JavaScript Projects In order to mark a (sub-)project as a JS project for Spine, apply the following config: + ```gradle spine.enableJavaScript() ``` From 74b8a14ce5f43c8cc1154f4a0f5427295b4501d8 Mon Sep 17 00:00:00 2001 From: Yurii Sergiichuk Date: Tue, 15 Dec 2020 18:54:21 +0200 Subject: [PATCH 7/8] Bump version to 1.7.0 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a2a882b5..dff19ca6 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ In order to apply the plugin to a Gradle project, in `build.gralde` add the foll ```gradle plugins { - id("io.spine.tools.gradle.bootstrap").version("1.6.0") + id("io.spine.tools.gradle.bootstrap").version("1.7.0") } ``` From e5e6fc0ed422aec8569df57a050ea0a79849d2f2 Mon Sep 17 00:00:00 2001 From: Yurii Sergiichuk Date: Tue, 15 Dec 2020 19:04:27 +0200 Subject: [PATCH 8/8] Add Dart codegen section. --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index dff19ca6..a8966fc7 100644 --- a/README.md +++ b/README.md @@ -133,3 +133,17 @@ This configuration: - configures JS code generation from Protobuf. If only JS generation is configured, the Java code will not be generated (and the other way around). + +## Dart Projects + +In order to mark a (sub-)project as a Dart project for Spine, apply the following config: + +```gradle +spine.enableDart() +``` + +This configuration: +- applies `com.google.protobuf` and `java` Gradle plugin (as the former depends on the latter); +- configures Dart code generation from Protobuf. + +If only Dart generation is configured, the Java code will not be generated (and the other way around).