From 9a17fc08f29fb46e6c0270796de9e2312b807d0b Mon Sep 17 00:00:00 2001 From: cometj03 Date: Fri, 25 Nov 2022 15:37:52 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Gradle=20=ED=8C=8C=EC=9D=BC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ComposeTimeTable/build.gradle | 52 +++++++++++++++++------------------ build.gradle | 7 +++++ settings.gradle | 14 +++++----- 3 files changed, 40 insertions(+), 33 deletions(-) diff --git a/ComposeTimeTable/build.gradle b/ComposeTimeTable/build.gradle index 40ac14c..9ad4d58 100644 --- a/ComposeTimeTable/build.gradle +++ b/ComposeTimeTable/build.gradle @@ -3,32 +3,32 @@ plugins { id 'kotlin-android' id 'maven-publish' } -// -//afterEvaluate { -// publishing { -// publications { -// // Creates a Maven publication called "release". -// release(MavenPublication) { -// // Applies the component for the release build variant. -// from components.release -// -// // You can then customize attributes of the publication as shown below. -// groupId = 'com.cometj03.compose-timetable' -// artifactId = 'final' -// version = '0.0.1' -// } -// // Creates a Maven publication called “debug”. -// debug(MavenPublication) { -// // Applies the component for the debug build variant. -// from components.debug -// -// groupId = 'com.cometj03.compose-timetable' -// artifactId = 'final-debug' -// version = '0.0.1' -// } -// } -// } -//} + +afterEvaluate { + publishing { + publications { + // Creates a Maven publication called "release". + release(MavenPublication) { + // Applies the component for the release build variant. + from components.release + + // You can then customize attributes of the publication as shown below. + groupId = 'com.cometj03.compose-timetable' + artifactId = 'final' + version = '0.0.1' + } + // Creates a Maven publication called “debug”. + debug(MavenPublication) { + // Applies the component for the debug build variant. + from components.debug + + groupId = 'com.cometj03.compose-timetable' + artifactId = 'final-debug' + version = '0.0.1' + } + } + } +} android { namespace 'com.cometj03.composetimetable' diff --git a/build.gradle b/build.gradle index 9c7d310..1f1dac1 100644 --- a/build.gradle +++ b/build.gradle @@ -15,4 +15,11 @@ plugins { id 'com.android.application' version '7.3.1' apply false id 'com.android.library' version '7.3.1' apply false id 'org.jetbrains.kotlin.android' version '1.6.10' apply false +} + +allprojects { + repositories { + google() + mavenCentral() + } } \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index bc109fe..58c8451 100644 --- a/settings.gradle +++ b/settings.gradle @@ -5,12 +5,12 @@ pluginManagement { mavenCentral() } } -dependencyResolutionManagement { - repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) - repositories { - google() - mavenCentral() - } -} +//dependencyResolutionManagement { +// repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) +// repositories { +// google() +// mavenCentral() +// } +//} rootProject.name = "ComposeTimeTable" include ':ComposeTimeTable'