Skip to content

Commit fb06a5f

Browse files
committed
Release v1.3.0
1 parent 6405863 commit fb06a5f

File tree

3 files changed

+36
-40
lines changed

3 files changed

+36
-40
lines changed

build.gradle

+32-36
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlin_version = '1.8.22'
2+
ext.kotlin_version = '1.9.22'
33

44
repositories {
55
google()
@@ -32,8 +32,8 @@ ext.projectArtifactId = { Project project ->
3232

3333
allprojects {
3434
group = 'kz.qbox.widget.webview'
35-
project.ext.version_code = 17
36-
version = '1.2.7'
35+
project.ext.version_code = 20
36+
version = '1.3.0'
3737
project.ext.artifactId = rootProject.ext.projectArtifactId(project)
3838

3939
if (project.group != null) {
@@ -83,18 +83,18 @@ subprojects { Project project ->
8383
}
8484

8585
publishing {
86-
multipleVariants {
87-
allVariants()
86+
singleVariant("release") {
87+
withSourcesJar()
8888
}
8989
}
9090

9191
compileOptions {
92-
sourceCompatibility JavaVersion.VERSION_11
93-
targetCompatibility JavaVersion.VERSION_11
92+
sourceCompatibility JavaVersion.VERSION_17
93+
targetCompatibility JavaVersion.VERSION_17
9494
}
9595

9696
kotlinOptions {
97-
jvmTarget = JavaVersion.VERSION_11.toString()
97+
jvmTarget = JavaVersion.VERSION_17.toString()
9898
}
9999

100100
configurations.configureEach {
@@ -107,38 +107,34 @@ subprojects { Project project ->
107107
}
108108

109109
afterEvaluate {
110-
publishing {
111-
publications {
112-
allVariants(MavenPublication) {
113-
from components.default
114-
115-
groupId project.group
116-
artifactId project.ext.artifactId
117-
version project.version
118-
119-
pom {
120-
name = project.name
121-
url = 'https://github.com/zhombie/qbox-webview-widget-android'
122-
123-
developers {
124-
developer {
125-
name = 'zhombie'
126-
}
127-
}
128-
}
110+
android.libraryVariants.each { variant ->
111+
publishing.publications.create(variant.name, MavenPublication) {
112+
from components.findByName(variant.name)
113+
114+
groupId project.group
115+
artifactId project.ext.artifactId
116+
version project.version
129117

130-
pom.withXml {
131-
def dependenciesNode = asNode().appendNode('dependencies')
132-
project.configurations.api.allDependencies.each { dependency ->
133-
def dependencyNode = dependenciesNode.appendNode('dependency')
134-
dependencyNode.appendNode('groupId', dependency.group)
135-
dependencyNode.appendNode('artifactId', dependency.name)
136-
dependencyNode.appendNode('version', dependency.version)
118+
pom {
119+
name = project.name
120+
url = 'https://github.com/zhombie/qbox-webview-widget-android'
121+
122+
developers {
123+
developer {
124+
name = 'zhombie'
137125
}
138126
}
139-
140-
artifact "$buildDir/outputs/aar/$project.name-release.aar"
141127
}
128+
129+
// pom.withXml {
130+
// def dependenciesNode = asNode().appendNode('dependencies')
131+
// project.configurations.api.allDependencies.each { dependency ->
132+
// def dependencyNode = dependenciesNode.appendNode('dependency')
133+
// dependencyNode.appendNode('groupId', dependency.group)
134+
// dependencyNode.appendNode('artifactId', dependency.name)
135+
// dependencyNode.appendNode('version', dependency.version)
136+
// }
137+
// }
142138
}
143139
}
144140
}

jitpack.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
jdk:
2-
- openjdk11
2+
- openjdk17
33
before_install:
44
- chmod +x gradlew

sample/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ android {
4444
}
4545

4646
compileOptions {
47-
sourceCompatibility JavaVersion.VERSION_11
48-
targetCompatibility JavaVersion.VERSION_11
47+
sourceCompatibility JavaVersion.VERSION_17
48+
targetCompatibility JavaVersion.VERSION_17
4949
}
5050

5151
kotlinOptions {
52-
jvmTarget = JavaVersion.VERSION_11.toString()
52+
jvmTarget = JavaVersion.VERSION_17.toString()
5353
}
5454
}
5555

0 commit comments

Comments
 (0)