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'