Skip to content

Set up publishing to MavenCentral #230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions base/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
group = 'com.github.thellmund.Android-Week-View'
version = '5.2.2'

apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

ext {
PUBLISH_ARTIFACT_ID = 'base'
}

apply from: "${rootProject.projectDir}/scripts/publish-mavencentral.gradle"

android {
compileSdkVersion buildConfig.compileSdk
defaultConfig {
Expand Down
Empty file removed base/consumer-rules.pro
Empty file.
21 changes: 0 additions & 21 deletions base/proguard-rules.pro

This file was deleted.

9 changes: 5 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
buildscript {
apply from: 'dependencies.gradle'
repositories {
jcenter()
google()
jcenter()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
classpath 'com.android.tools.build:gradle:4.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'org.jlleitschuh.gradle:ktlint-gradle:9.2.1'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.28.0'
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.4.10.2'
}
}

Expand All @@ -30,8 +31,8 @@ allprojects {
apply plugin: 'org.jlleitschuh.gradle.ktlint'

repositories {
jcenter()
mavenCentral()
google()
jcenter()
}
}
10 changes: 6 additions & 4 deletions core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
group = 'com.github.thellmund.Android-Week-View'
version = '5.2.2'

apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

ext {
PUBLISH_ARTIFACT_ID = 'core'
}

apply from: "${rootProject.projectDir}/scripts/publish-mavencentral.gradle"

android {
compileSdkVersion buildConfig.compileSdk
defaultConfig {
Expand Down
3 changes: 0 additions & 3 deletions core/gradle.properties

This file was deleted.

17 changes: 0 additions & 17 deletions core/proguard-rules.pro

This file was deleted.

10 changes: 6 additions & 4 deletions emoji/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
group = 'com.github.thellmund.Android-Week-View'
version = '5.2.2'

apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

ext {
PUBLISH_ARTIFACT_ID = 'emoji'
}

apply from: "${rootProject.projectDir}/scripts/publish-mavencentral.gradle"

android {
compileSdkVersion buildConfig.compileSdk
defaultConfig {
Expand Down
Empty file removed emoji/consumer-rules.pro
Empty file.
21 changes: 0 additions & 21 deletions emoji/proguard-rules.pro

This file was deleted.

14 changes: 0 additions & 14 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
VERSION_NAME=5.2.2
GROUP=com.github.thellmund

POM_DESCRIPTION=An Android library to display customizable calendar views
POM_URL=https://github.com/thellmund/Android-Week-View
POM_SCM_URL=https://github.com/thellmund/Android-Week-View
POM_SCM_CONNECTION=scm:[email protected]/thellmund/Android-Week-View.git
POM_SCM_DEV_CONNECTION=scm:[email protected]:thellmund/Android-Week-View.git
POM_LICENCE_NAME=The Apache Software License, Version 2.0
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=thellmund
POM_DEVELOPER_NAME=Till Hellmund

android.useAndroidX=true
11 changes: 6 additions & 5 deletions jodatime/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
group = 'com.github.thellmund.Android-Week-View'
version = '5.2.2'

apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

ext {
PUBLISH_ARTIFACT_ID = 'jodatime'
}

apply from: "${rootProject.projectDir}/scripts/publish-mavencentral.gradle"

android {
compileSdkVersion buildConfig.compileSdk
defaultConfig {
Expand All @@ -25,7 +27,6 @@ dependencies {
implementation libraries.jodaTimeAndroid

testImplementation libraries.jodaTime

testImplementation testing.jUnit
testImplementation testing.mockitoCore
testImplementation testing.mockitoInline
Expand Down
Empty file removed jodatime/consumer-rules.pro
Empty file.
21 changes: 0 additions & 21 deletions jodatime/proguard-rules.pro

This file was deleted.

10 changes: 6 additions & 4 deletions jsr310/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
group = 'com.github.thellmund.Android-Week-View'
version = '5.2.2'

apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

ext {
PUBLISH_ARTIFACT_ID = 'jsr310'
}

apply from: "${rootProject.projectDir}/scripts/publish-mavencentral.gradle"

android {
compileSdkVersion buildConfig.compileSdk
defaultConfig {
Expand Down
Empty file removed jsr310/consumer-rules.pro
Empty file.
21 changes: 0 additions & 21 deletions jsr310/proguard-rules.pro

This file was deleted.

17 changes: 0 additions & 17 deletions sample/proguard-rules.pro

This file was deleted.

2 changes: 0 additions & 2 deletions sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
xmlns:tools="http://schemas.android.com/tools"
package="com.alamkanak.weekview.sample">

<uses-permission android:name="android.permission.INTERNET" />

<application
android:name=".SampleApp"
android:allowBackup="true"
Expand Down
Loading