Convenience build tool extensions for Gradle - Kotlin and Android
The plugins are available in the Gradle Plugin Portal and support the plugins DSL.
A collection of plugins patching minor issues of other plugins. These are identified by their id only. Thus no dependencies are defined or required.
Fix minor issues within IDEA regarding source sets of Kotlin and Test Fixtures.
id 'xyz.tynn.idea.fix' version 'x.y.z'
Include all Kotlin source directories into the Java source sets for Android modules. A manual configuration for Android Studio is unnecessary.
Just remove lines like the following
main.java.srcDirs += 'src/main/kotlin'
sourceSets["main"].java.srcDir("src/main/kotlin")
The testFixtures
source sets are added as test source directories and to the
PROVIDED
scope.
A collection of plugins to help publishing Java Library projects with Gradle metadata.
Provides a kdocElements configuration and a kdocJar task to create Java
and Kotlin variant KDoc artifact. This artifact is added to the java
component when requested with withKdocJar
. This plugin uses dokka and
requires it in the build classpath only.
id 'org.jetbrains.dokka' version '0.10.1'
id 'xyz.tynn.jvm.kdoc' version 'x.y.z'
java {
withJavadocJar()
withKdocJar()
withSourcesJar()
}
publishing {
publications {
jvm(MavenPublication) {
from components.java
}
}
}
A collection of plugins to help publishing Android Library projects with Gradle metadata.
A collection of plugins utilising the Support for the Maven Publish plugin available from version 3.6 of the Android Gradle plugin.
Provides publications for all release variant components provided with the Support for the Maven Publish plugin.
id 'xyz.tynn.android.maven' version 'x.y.z'
The artifact id of each publication contains the product flavors in form of
project.name-flavor1.name-flavor2.name
.
A release component and publication is provided when built with Gradle 6.0 or later. The publication contains the module meta data to link product flavors to their publications. The product flavor dimensions always contain a namespace defaulting to the group of the module.
- release
- variantName
- variantNameMetaPublication
Provides configurations and tasks for Java variant javadoc artifacts. These artifacts are added to the components provided with the Support for the Maven Publish plugin.
id 'xyz.tynn.android.javadoc' version 'x.y.z'
- :variantNameJavadoc
- :variantNameJavadocJar
- variantNameJavadocPublication
- variantNameAllJavadocPublication
Provides configurations and tasks for Java and Kotlin variant KDoc artifacts. These artifacts are added to the components provided with the Support for the Maven Publish plugin from version 3.6 of the Android Gradle plugin. This plugin uses dokka and requires it in the build classpath only.
id 'org.jetbrains.dokka' version '0.10.1' apply false
id 'xyz.tynn.android.kdoc' version 'x.y.z'
- :variantNameKdoc
- :variantNameKdocJar
- variantNameKdocPublication
- variantNameAllKdocPublication
Provides configurations and tasks for Java and Kotlin variant sources artifacts. These artifacts are added to the components provided with the Support for the Maven Publish plugin
id 'xyz.tynn.android.sources' version 'x.y.z'
- :variantNameSourcesJar
- variantNameSourcesPublication
- variantNameAllSourcesPublication
Copyright (C) 2019-2020 Christian Schmitz
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.