From d2ff103d71ac44a4cc5e1e054c856d77d1a495d6 Mon Sep 17 00:00:00 2001 From: Guillermo Mazzola Date: Mon, 18 Dec 2023 02:13:36 +0100 Subject: [PATCH 01/29] Changed plugin id to `io.github.gmazzo.codeowners.jvm` --- .run/All tests.run.xml | 6 +- README.md => README-jvm.md | 14 +-- build.gradle.kts | 36 ++---- gradle.properties | 4 +- plugin/build.gradle.kts | 111 +++++------------- .../buildSrc}/build.gradle.kts | 0 .../buildSrc}/settings.gradle.kts | 2 +- .../src/main/kotlin/git-versioning.gradle.kts | 0 .../kotlin/java-integration-tests.gradle.kts | 0 .../kotlin/maven-central-publish.gradle.kts | 4 + {core => plugin/jvm-core}/build.gradle.kts | 0 .../io/github/gmazzo/codeowners/CodeOwners.kt | 0 .../gmazzo/codeowners/CodeOwnersTest.kt | 0 .../src/testFixtures/kotlin/bar/Bar.kt | 0 .../testFixtures/kotlin/bar/impl/BarImpl.kt | 0 .../src/testFixtures/kotlin/baz/Baz.kt | 0 .../src/testFixtures/kotlin/foo/Foo.kt | 0 .../src/testFixtures/kotlin/foo/bar/FooBar.kt | 0 .../kotlin/foo/bar/impl/FooBarImpl.kt | 0 .../testFixtures/kotlin/foo/impl/FooImpl.kt | 0 .../testFixtures/resources/bar/.codeowners | 0 .../resources/bar/impl/BarImpl.codeowners | 0 .../testFixtures/resources/baz/Baz.codeowners | 0 .../testFixtures/resources/foo/.codeowners | 0 .../resources/foo/bar/.codeowners | 0 plugin/jvm-plugin/build.gradle.kts | 98 ++++++++++++++++ .../codeowners/CodeOwnersPluginITest.kt | 6 +- .../resources/project/CODEOWNERS | 0 .../resources/project/app/build.gradle.kts | 4 +- .../project/app/src/main/AndroidManifest.xml | 0 .../src/main/kotlin/org/test/app/AppClass.kt | 0 .../main/kotlin/org/test/utils/AppUtils.kt | 0 .../test/java/org/test/app/AppOwnersTest.java | 0 .../resources/project/build.gradle.kts | 4 +- .../resources/project/gradle.properties | 0 .../resources/project/lib1/build.gradle.kts | 4 +- .../resources/project/lib1/gradle.properties | 0 .../src/main/kotlin/org/test/lib/LibClass.kt | 0 .../main/kotlin/org/test/utils/LibUtils.kt | 0 .../test/java/org/test/lib/LibOwnersTest.java | 0 .../resources/project/lib2/build.gradle.kts | 2 +- .../resources/project/settings.gradle.kts | 0 .../resources/project/utils/build.gradle.kts | 2 +- .../src/main/kotlin/org/test/utils/Utils.kt | 0 .../kotlin/org/test/utils/more/MoreUtils.kt | 0 .../java/org/test/utils/UtilsOwnersTest.java | 0 .../src/main/kotlin/CodeOwnersDSL.kt | 0 .../gmazzo/codeowners/CodeOwnersConfig.kt | 0 .../gmazzo/codeowners/CodeOwnersExtension.kt | 0 .../gmazzo/codeowners/CodeOwnersFile.kt | 0 .../gmazzo/codeowners/CodeOwnersJVMPlugin.kt} | 32 +++-- .../gmazzo/codeowners/CodeOwnersSourceSet.kt | 0 .../codeowners/CodeOwnersSourceSetImpl.kt | 0 .../gmazzo/codeowners/CodeOwnersTask.kt | 16 ++- .../gmazzo/codeowners/CodeOwnersTransform.kt | 6 +- .../gmazzo/codeowners/CodeOwnersFileTest.kt | 0 .../codeowners/CodeOwnersJVMPluginTest.kt} | 5 +- .../codeowners/CodeOwnersTransformTest.kt | 1 - .../src/test/resources/lib1.jar | Bin plugin/settings.gradle.kts | 20 ++++ settings.gradle.kts | 5 +- 61 files changed, 240 insertions(+), 142 deletions(-) rename README.md => README-jvm.md (93%) rename {buildSrc => plugin/buildSrc}/build.gradle.kts (100%) rename {buildSrc => plugin/buildSrc}/settings.gradle.kts (62%) rename {buildSrc => plugin/buildSrc}/src/main/kotlin/git-versioning.gradle.kts (100%) rename {buildSrc => plugin/buildSrc}/src/main/kotlin/java-integration-tests.gradle.kts (100%) rename {buildSrc => plugin/buildSrc}/src/main/kotlin/maven-central-publish.gradle.kts (93%) rename {core => plugin/jvm-core}/build.gradle.kts (100%) rename {core => plugin/jvm-core}/src/main/kotlin/io/github/gmazzo/codeowners/CodeOwners.kt (100%) rename {core => plugin/jvm-core}/src/test/kotlin/io/github/gmazzo/codeowners/CodeOwnersTest.kt (100%) rename {core => plugin/jvm-core}/src/testFixtures/kotlin/bar/Bar.kt (100%) rename {core => plugin/jvm-core}/src/testFixtures/kotlin/bar/impl/BarImpl.kt (100%) rename {core => plugin/jvm-core}/src/testFixtures/kotlin/baz/Baz.kt (100%) rename {core => plugin/jvm-core}/src/testFixtures/kotlin/foo/Foo.kt (100%) rename {core => plugin/jvm-core}/src/testFixtures/kotlin/foo/bar/FooBar.kt (100%) rename {core => plugin/jvm-core}/src/testFixtures/kotlin/foo/bar/impl/FooBarImpl.kt (100%) rename {core => plugin/jvm-core}/src/testFixtures/kotlin/foo/impl/FooImpl.kt (100%) rename {core => plugin/jvm-core}/src/testFixtures/resources/bar/.codeowners (100%) rename {core => plugin/jvm-core}/src/testFixtures/resources/bar/impl/BarImpl.codeowners (100%) rename {core => plugin/jvm-core}/src/testFixtures/resources/baz/Baz.codeowners (100%) rename {core => plugin/jvm-core}/src/testFixtures/resources/foo/.codeowners (100%) rename {core => plugin/jvm-core}/src/testFixtures/resources/foo/bar/.codeowners (100%) create mode 100644 plugin/jvm-plugin/build.gradle.kts rename plugin/{ => jvm-plugin}/src/integrationTest/kotlin/io/github/gmazzo/codeowners/CodeOwnersPluginITest.kt (98%) rename plugin/{ => jvm-plugin}/src/integrationTest/resources/project/CODEOWNERS (100%) rename plugin/{ => jvm-plugin}/src/integrationTest/resources/project/app/build.gradle.kts (78%) rename plugin/{ => jvm-plugin}/src/integrationTest/resources/project/app/src/main/AndroidManifest.xml (100%) rename plugin/{ => jvm-plugin}/src/integrationTest/resources/project/app/src/main/kotlin/org/test/app/AppClass.kt (100%) rename plugin/{ => jvm-plugin}/src/integrationTest/resources/project/app/src/main/kotlin/org/test/utils/AppUtils.kt (100%) rename plugin/{ => jvm-plugin}/src/integrationTest/resources/project/app/src/test/java/org/test/app/AppOwnersTest.java (100%) rename plugin/{ => jvm-plugin}/src/integrationTest/resources/project/build.gradle.kts (76%) rename plugin/{ => jvm-plugin}/src/integrationTest/resources/project/gradle.properties (100%) rename plugin/{ => jvm-plugin}/src/integrationTest/resources/project/lib1/build.gradle.kts (65%) rename plugin/{ => jvm-plugin}/src/integrationTest/resources/project/lib1/gradle.properties (100%) rename plugin/{ => jvm-plugin}/src/integrationTest/resources/project/lib1/src/main/kotlin/org/test/lib/LibClass.kt (100%) rename plugin/{ => jvm-plugin}/src/integrationTest/resources/project/lib1/src/main/kotlin/org/test/utils/LibUtils.kt (100%) rename plugin/{ => jvm-plugin}/src/integrationTest/resources/project/lib1/src/test/java/org/test/lib/LibOwnersTest.java (100%) rename plugin/{ => jvm-plugin}/src/integrationTest/resources/project/lib2/build.gradle.kts (90%) rename plugin/{ => jvm-plugin}/src/integrationTest/resources/project/settings.gradle.kts (100%) rename plugin/{ => jvm-plugin}/src/integrationTest/resources/project/utils/build.gradle.kts (68%) rename plugin/{ => jvm-plugin}/src/integrationTest/resources/project/utils/src/main/kotlin/org/test/utils/Utils.kt (100%) rename plugin/{ => jvm-plugin}/src/integrationTest/resources/project/utils/src/main/kotlin/org/test/utils/more/MoreUtils.kt (100%) rename plugin/{ => jvm-plugin}/src/integrationTest/resources/project/utils/src/test/java/org/test/utils/UtilsOwnersTest.java (100%) rename plugin/{ => jvm-plugin}/src/main/kotlin/CodeOwnersDSL.kt (100%) rename plugin/{ => jvm-plugin}/src/main/kotlin/io/github/gmazzo/codeowners/CodeOwnersConfig.kt (100%) rename plugin/{ => jvm-plugin}/src/main/kotlin/io/github/gmazzo/codeowners/CodeOwnersExtension.kt (100%) rename plugin/{ => jvm-plugin}/src/main/kotlin/io/github/gmazzo/codeowners/CodeOwnersFile.kt (100%) rename plugin/{src/main/kotlin/io/github/gmazzo/codeowners/CodeOwnersPlugin.kt => jvm-plugin/src/main/kotlin/io/github/gmazzo/codeowners/CodeOwnersJVMPlugin.kt} (93%) rename plugin/{ => jvm-plugin}/src/main/kotlin/io/github/gmazzo/codeowners/CodeOwnersSourceSet.kt (100%) rename plugin/{ => jvm-plugin}/src/main/kotlin/io/github/gmazzo/codeowners/CodeOwnersSourceSetImpl.kt (100%) rename plugin/{ => jvm-plugin}/src/main/kotlin/io/github/gmazzo/codeowners/CodeOwnersTask.kt (93%) rename plugin/{ => jvm-plugin}/src/main/kotlin/io/github/gmazzo/codeowners/CodeOwnersTransform.kt (83%) rename plugin/{ => jvm-plugin}/src/test/kotlin/io/github/gmazzo/codeowners/CodeOwnersFileTest.kt (100%) rename plugin/{src/test/kotlin/io/github/gmazzo/codeowners/CodeOwnersPluginTest.kt => jvm-plugin/src/test/kotlin/io/github/gmazzo/codeowners/CodeOwnersJVMPluginTest.kt} (98%) rename plugin/{ => jvm-plugin}/src/test/kotlin/io/github/gmazzo/codeowners/CodeOwnersTransformTest.kt (96%) rename plugin/{ => jvm-plugin}/src/test/resources/lib1.jar (100%) create mode 100644 plugin/settings.gradle.kts diff --git a/.run/All tests.run.xml b/.run/All tests.run.xml index 525f043..e1b2e6b 100644 --- a/.run/All tests.run.xml +++ b/.run/All tests.run.xml @@ -4,14 +4,13 @@