From cec904e746eb4fa99f9249693af6bf45f4cc7c12 Mon Sep 17 00:00:00 2001 From: Nick Rout Date: Wed, 16 Nov 2022 16:54:22 +0200 Subject: [PATCH] Prepare for core release --- core/build.gradle | 26 ++++++++++++++++++++++++++ core/gradle.properties | 20 ++++++++++++++++++++ material3Lib/gradle.properties | 2 +- materialLib/gradle.properties | 2 +- 4 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 core/gradle.properties diff --git a/core/build.gradle b/core/build.gradle index 6725ee5..7fdf07d 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -43,6 +43,20 @@ android { composeOptions { kotlinCompilerExtensionVersion Libs.AndroidX.Compose.compilerVersion } + + lintOptions { + textReport true + textOutput 'stdout' + // We run a full lint analysis as build part in CI, so skip vital checks for assemble tasks + checkReleaseBuilds false + } + + packagingOptions { + // Multiple dependencies bring these files in. Exclude them to enable + // our test APK to build (has no effect on our AARs) + excludes += "/META-INF/AL2.0" + excludes += "/META-INF/LGPL2.1" + } } dependencies { @@ -58,3 +72,15 @@ dependencies { androidTestImplementation Libs.AndroidX.Test.rules androidTestImplementation Libs.AndroidX.Test.runner } + +apply plugin: 'com.vanniktech.maven.publish' + +mavenPublish { + targets { + uploadArchives { + snapshotRepositoryUrl = "https://maven.pkg.github.com/material-components/material-components-android-compose-theme-adapter-core" + releaseRepositoryUrl = "https://maven.pkg.github.com/material-components/material-components-android-compose-theme-adapter-core" + } + } +} + diff --git a/core/gradle.properties b/core/gradle.properties new file mode 100644 index 0000000..6821955 --- /dev/null +++ b/core/gradle.properties @@ -0,0 +1,20 @@ +# +# Copyright 2020 The Android Open Source Project +# +# 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 +# +# https://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. +# + +POM_ARTIFACT_ID=compose-theme-adapter-core +POM_NAME=MDC-Android Theme Adapter for Compose +POM_PACKAGING=aar +VERSION_NAME=1.0.0-SNAPSHOT \ No newline at end of file diff --git a/material3Lib/gradle.properties b/material3Lib/gradle.properties index 4fa968b..e6b2c05 100644 --- a/material3Lib/gradle.properties +++ b/material3Lib/gradle.properties @@ -17,4 +17,4 @@ POM_ARTIFACT_ID=compose-theme-adapter-3 POM_NAME=MDC-Android Theme Adapter for Compose Material 3 POM_PACKAGING=aar -VERSION_NAME=1.0.23-SNAPSHOT \ No newline at end of file +VERSION_NAME=1.1.0-SNAPSHOT \ No newline at end of file diff --git a/materialLib/gradle.properties b/materialLib/gradle.properties index 8a3624a..f135909 100644 --- a/materialLib/gradle.properties +++ b/materialLib/gradle.properties @@ -17,4 +17,4 @@ POM_ARTIFACT_ID=compose-theme-adapter POM_NAME=MDC-Android Theme Adapter for Compose Material POM_PACKAGING=aar -VERSION_NAME=1.1.23-SNAPSHOT +VERSION_NAME=1.2.0-SNAPSHOT