Skip to content

Commit 9a0e30e

Browse files
committed
chore: fix build and release process
1 parent 801ac23 commit 9a0e30e

File tree

8 files changed

+63
-137
lines changed

8 files changed

+63
-137
lines changed

build.gradle

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,14 @@ buildscript {
66
google()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:7.3.1'
9+
classpath 'com.android.tools.build:gradle:8.3.1'
1010

1111
// NOTE: Do not place your application dependencies here; they belong
1212
// in the individual module build.gradle files
1313
}
1414
}
1515

16-
1716
allprojects {
18-
version = VERSION_NAME
19-
group = GROUP
20-
2117
repositories {
2218
mavenCentral()
2319
google()

gradle.properties

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,5 @@
1111
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1212
# org.gradle.parallel=true
1313
#Mon Feb 17 17:15:36 CET 2025
14-
POM_DESCRIPTION=An android library to show day view, week view, 3 day view etc. in your app.
15-
POM_LICENCE_URL=http\://www.apache.org/licenses/LICENSE-2.0.txt
16-
POM_SCM_CONNECTION=scm\:[email protected]/Quivr/Android-Week-View.git
1714
android.useAndroidX=true
1815
android.enableJetifier=true
19-
POM_DEVELOPER_ID=quivr
20-
POM_DEVELOPER_NAME=Quivr
21-
POM_LICENCE_DIST=repo
22-
VERSION_NAME=2.3.3
23-
GROUP=com.github.quivr
24-
POM_SCM_DEV_CONNECTION=scm\:[email protected]\:Quivr/Android-Week-View.git
25-
POM_LICENCE_NAME=The Apache Software License, Version 2.0
26-
POM_URL=https\://github.com/Quivr/Android-Week-View
27-
POM_SCM_URL=https\://github.com/Quivr/Android-Week-View

gradlew

100644100755
File mode changed.

library/build.gradle

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
plugins {
2+
id 'signing'
3+
id "com.vanniktech.maven.publish" version "0.31.0"
4+
}
5+
6+
import com.vanniktech.maven.publish.SonatypeHost
17
apply plugin: 'com.android.library'
28

39
repositories {
@@ -7,7 +13,6 @@ repositories {
713
android {
814
namespace "com.alamkanak.weekview"
915
compileSdkVersion 34
10-
buildToolsVersion '25.0.2'
1116

1217
defaultConfig {
1318
minSdkVersion 24
@@ -23,4 +28,36 @@ dependencies {
2328
// javadocDeps 'com.android.support:appcompat-v7:25.1.0'
2429
}
2530

26-
// apply from: 'gradle-mvn-push.gradle'
31+
mavenPublishing {
32+
coordinates(GROUP, 'android-week-view', VERSION_NAME)
33+
34+
35+
signAllPublications()
36+
pom {
37+
name = POM_NAME
38+
description = POM_DESCRIPTION
39+
url = POM_URL
40+
41+
licenses {
42+
license {
43+
name = POM_LICENCE_NAME
44+
url = POM_LICENCE_URL
45+
distribution = POM_LICENCE_DIST
46+
}
47+
}
48+
49+
developers {
50+
developer {
51+
id = POM_DEVELOPER_ID
52+
name = POM_DEVELOPER_NAME
53+
}
54+
}
55+
56+
scm {
57+
url = POM_SCM_URL
58+
connection = POM_SCM_CONNECTION
59+
developerConnection = POM_SCM_DEV_CONNECTION
60+
}
61+
}
62+
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
63+
}

library/gradle-mvn-push.gradle

Lines changed: 0 additions & 115 deletions
This file was deleted.

library/gradle.properties

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1+
GROUP=com.github.quivr
2+
13
POM_NAME=Android Week View
24
POM_ARTIFACT_ID=android-week-view
35
POM_PACKAGING=aar
4-
android.useAndroidX=true
6+
POM_DESCRIPTION=An android library to show day view, week view, 3 day view etc. in your app.
7+
POM_LICENCE_URL=http\://www.apache.org/licenses/LICENSE-2.0.txt
8+
POM_SCM_CONNECTION=scm\:[email protected]/Quivr/Android-Week-View.git
9+
POM_DEVELOPER_ID=quivr
10+
POM_DEVELOPER_NAME=Quivr
11+
POM_LICENCE_DIST=repo
12+
POM_SCM_DEV_CONNECTION=scm\:[email protected]\:Quivr/Android-Week-View.git
13+
POM_LICENCE_NAME=The Apache Software License, Version 2.0
14+
POM_URL=https\://github.com/Quivr/Android-Week-View
15+
POM_SCM_URL=https\://github.com/Quivr/Android-Week-View
16+
17+
# This is managed by the release workflow
18+
VERSION_NAME=3.0.0

sample/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 25
4+
compileSdkVersion 35
55
buildToolsVersion '25.0.2'
66
namespace "com.alamkanak.sample"
77

88
defaultConfig {
99
applicationId "com.alamkanak.weekview"
1010
minSdkVersion 14
11-
targetSdkVersion 25
11+
targetSdkVersion 35
1212
versionCode 1
1313
versionName "1.0"
1414
}

settings.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
pluginManagement {
2+
repositories {
3+
gradlePluginPortal()
4+
mavenCentral()
5+
}
6+
}
17
include ':library', ':sample'

0 commit comments

Comments
 (0)