From e5a42386d7be8ac977219ffbb5a76a84abd5c75a Mon Sep 17 00:00:00 2001 From: jisungbin Date: Wed, 5 Oct 2022 23:15:41 +0900 Subject: [PATCH] project init --- .gitignore | 10 +++++ .idea/copyright/MIT.xml | 6 +++ .idea/copyright/profiles_settings.xml | 7 +++ LICENSE | 21 +++++++++ README.md | 3 ++ build.gradle.kts | 45 +++++++++++++++++++ gradle.properties | 33 ++++++++++++++ gradle/wrapper/gradle-wrapper.properties | 5 +++ settings.gradle.kts | 8 ++++ .../ComposableReferenceSuppressorPlugin.kt | 10 +++++ 10 files changed, 148 insertions(+) create mode 100644 .gitignore create mode 100644 .idea/copyright/MIT.xml create mode 100644 .idea/copyright/profiles_settings.xml create mode 100644 LICENSE create mode 100644 README.md create mode 100644 build.gradle.kts create mode 100644 gradle.properties create mode 100644 gradle/wrapper/gradle-wrapper.properties create mode 100644 settings.gradle.kts create mode 100644 src/main/kotlin/land/sungbin/composable/reference/suppressor/ComposableReferenceSuppressorPlugin.kt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c435f7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +**/.idea/* +!/.idea/icon.png +!/.idea/vcs.xml +!/.idea/copyright +!/.idea/codeStyleSettings.xml +!/.idea/codeStyles +!/.idea/dictionaries +*.iml +.gradle +build \ No newline at end of file diff --git a/.idea/copyright/MIT.xml b/.idea/copyright/MIT.xml new file mode 100644 index 0000000..5d8b1b8 --- /dev/null +++ b/.idea/copyright/MIT.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..744beb8 --- /dev/null +++ b/.idea/copyright/profiles_settings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..64bb257 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 SungbinLand, Ji Sungbin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..88155e0 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# composer-function-reference-diagnostic-suppressor + +`COMPOSABLE_FUNCTION_REFERENCE` diagnostic suppression Kotlin compiler plugin \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..51dab57 --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,45 @@ +/* + * Developed by 2022 SungbinLand, Ji Sungbin + * + * Licensed under the MIT. + * Please see full license: https://github.com/duckie-team/composable-function-reference-diagnostic-suppressor/blob/main/LICENSE + */ + +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + +plugins { + kotlin("jvm") version "1.7.20" + `java-gradle-plugin` + id("com.vanniktech.maven.publish") version "0.22.0" +} + +gradlePlugin { + plugins { + create("composableReferenceSuppressor") { + id = "land.sungbin.composable.reference.suppressor" + implementationClass = "land.sungbin.composable.reference.suppressor.ComposableReferenceSuppressorPlugin" + } + } +} + +repositories { + mavenCentral() +} + +dependencies { + compileOnly(gradleApi()) + implementation("org.jetbrains.compose.compiler:compiler:1.1.1") +} + +tasks.test { + useJUnitPlatform() +} + +tasks.withType { + kotlinOptions.jvmTarget = "11" +} + +tasks.withType { + sourceCompatibility = JavaVersion.VERSION_11.toString() + targetCompatibility = JavaVersion.VERSION_11.toString() +} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..20f9418 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,33 @@ +# +# Developed by 2022 SungbinLand, Ji Sungbin +# +# Licensed under the MIT. +# Please see full license: https://github.com/duckie-team/composable-function-reference-diagnostic-suppressor/blob/main/LICENSE +# + +kotlin.code.style=official + +SONATYPE_HOST=S01 +RELEASE_SIGNING_ENABLED=true + +GROUP=land.sungbin +POM_ARTIFACT_ID=composable.reference.suppressor +VERSION_NAME=0.1.0-preview + +POM_NAME=composable-function-reference-diagnostic-suppressor +POM_DESCRIPTION=COMPOSABLE_FUNCTION_REFERENCE diagnostic suppression Kotlin compiler plugin +POM_INCEPTION_YEAR=2022 +POM_URL=https://github.com/duckie-team/composable-function-reference-diagnostic-suppressor + +POM_LICENSE_NAME=MIT License +POM_LICENSE_URL=https://github.com/duckie-team/composable-function-reference-diagnostic-suppressor/blob/main/README.md +POM_LICENSE_DIST=repo + +POM_SCM_URL=https://github.com/duckie-team/composable-function-reference-diagnostic-suppressor/tree/main +POM_SCM_CONNECTION=scm:git:github.com/duckie-team/composable-function-reference-diagnostic-suppressor.git +POM_SCM_DEV_CONNECTION=scm:git:ssh://github.com/duckie-team/composable-function-reference-diagnostic-suppressor.git + +POM_DEVELOPER_ID=jisungbin +POM_DEVELOPER_NAME=Ji Sungbin +POM_DEVELOPER_URL=https://sungb.in +POM_DEVELOPER_EMAIL=ji@sungb.in \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..e8186aa --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip +distributionPath=wrapper/dists +zipStorePath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME diff --git a/settings.gradle.kts b/settings.gradle.kts new file mode 100644 index 0000000..dfce07a --- /dev/null +++ b/settings.gradle.kts @@ -0,0 +1,8 @@ +/* + * Developed by 2022 SungbinLand, Ji Sungbin + * + * Licensed under the MIT. + * Please see full license: https://github.com/duckie-team/composable-function-reference-diagnostic-suppressor/blob/main/LICENSE + */ + +rootProject.name = "composable-reference-suppressor" diff --git a/src/main/kotlin/land/sungbin/composable/reference/suppressor/ComposableReferenceSuppressorPlugin.kt b/src/main/kotlin/land/sungbin/composable/reference/suppressor/ComposableReferenceSuppressorPlugin.kt new file mode 100644 index 0000000..6313d61 --- /dev/null +++ b/src/main/kotlin/land/sungbin/composable/reference/suppressor/ComposableReferenceSuppressorPlugin.kt @@ -0,0 +1,10 @@ +/* + * Developed by 2022 SungbinLand, Ji Sungbin + * + * Licensed under the MIT. + * Please see full license: https://github.com/duckie-team/composable-function-reference-diagnostic-suppressor/blob/main/LICENSE + */ + +package land.sungbin.composable.reference.suppressor + +class ComposableReferenceSuppressorPlugin \ No newline at end of file