diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 798fcdac..e8006d6b 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -1,3 +1,18 @@ +/* + * Copyright 2023 DroidconKE + * + * 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. + * See the License for the specific language governing permissions and + * limitations under the License. + */ plugins { id("com.android.application") id("org.jetbrains.kotlin.android") diff --git a/build.gradle.kts b/build.gradle.kts index 0b260b7f..2d50327b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -53,5 +53,11 @@ subprojects { "^(package|object|import|interface)" ) } + format("kts") { + target("**/*.kts") + targetExclude("**/build/**/*.kts") + // Look for the first line that doesn't have a block comment (assumed to be the license) + licenseHeaderFile(rootProject.file("spotless/copyright.kts"), "(^(?![\\/ ]\\*).*$)") + } } } \ No newline at end of file diff --git a/chai/build.gradle.kts b/chai/build.gradle.kts index 057be193..4b9caaf6 100644 --- a/chai/build.gradle.kts +++ b/chai/build.gradle.kts @@ -1,3 +1,18 @@ +/* + * Copyright 2023 DroidconKE + * + * 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. + * See the License for the specific language governing permissions and + * limitations under the License. + */ plugins { id("com.android.library") id("org.jetbrains.kotlin.android") diff --git a/data/build.gradle.kts b/data/build.gradle.kts index 42f799ba..46551eff 100644 --- a/data/build.gradle.kts +++ b/data/build.gradle.kts @@ -1,3 +1,18 @@ +/* + * Copyright 2023 DroidconKE + * + * 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. + * See the License for the specific language governing permissions and + * limitations under the License. + */ plugins { id("droidconke.android.library") id("com.google.devtools.ksp") diff --git a/domain/build.gradle.kts b/domain/build.gradle.kts index 66ed78cf..70eebff6 100644 --- a/domain/build.gradle.kts +++ b/domain/build.gradle.kts @@ -1,3 +1,18 @@ +/* + * Copyright 2023 DroidconKE + * + * 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. + * See the License for the specific language governing permissions and + * limitations under the License. + */ plugins { id("droidconke.android.library") id("org.jlleitschuh.gradle.ktlint") diff --git a/presentation/build.gradle.kts b/presentation/build.gradle.kts index 1d23ab7b..a9d826d1 100644 --- a/presentation/build.gradle.kts +++ b/presentation/build.gradle.kts @@ -1,3 +1,18 @@ +/* + * Copyright 2023 DroidconKE + * + * 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. + * See the License for the specific language governing permissions and + * limitations under the License. + */ plugins { id("droidconke.android.library") id("dagger.hilt.android.plugin") diff --git a/settings.gradle.kts b/settings.gradle.kts index 7d14ad9b..63e8f7e7 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -23,4 +23,4 @@ include(":chai") include(":data") include(":domain") -include(":presentation") +include(":presentation") \ No newline at end of file diff --git a/spotless/copyright.kts b/spotless/copyright.kts new file mode 100644 index 00000000..c9608eb6 --- /dev/null +++ b/spotless/copyright.kts @@ -0,0 +1,15 @@ +/* + * Copyright $YEAR DroidconKE + * + * 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. + * See the License for the specific language governing permissions and + * limitations under the License. + */ \ No newline at end of file