Skip to content
This repository was archived by the owner on Oct 28, 2022. It is now read-only.

Commit 2b78439

Browse files
[Bump] to Version 1.1-beta04
1 parent 1ca81cb commit 2b78439

File tree

5 files changed

+23
-11
lines changed

5 files changed

+23
-11
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "docs"]
2+
path = docs
3+
url = https://github.com/KaustubhPatange/AutoBindings.wiki.git

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Library currently supports
1212
- [Generation of RecyclerView adapters](https://github.com/KaustubhPatange/AutoBindings/wiki/Adapter-Generation)
1313
- [Generation of `TypeConverters` for Room](https://github.com/KaustubhPatange/AutoBindings/wiki/TypeConverter-Generation)
1414
- [Generation of `ColumnAdapters` for custom types in SQLDelight](https://github.com/KaustubhPatange/AutoBindings/wiki/ColumnAdapter-Generation)
15+
- [Generic Use of `TypeConverters` for general purpose](https://github.com/KaustubhPatange/AutoBindings/wiki/Generic-use-of-TypeConverters)
1516

1617
You can find some set of extra compiler options [here](https://github.com/KaustubhPatange/AutoBindings/wiki/Compiler-Options).
1718

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
ext.androidGradlePlugin = "7.0.0"
66
ext.lintVersion = "30.0.0" // Lint version = 23.0.0 + androidGradlePlugin version
77
ext.versions = [
8-
'library': "1.1-beta03" // TODO: Increment version for every new release & run the task at bottom to publish it
8+
'library': "1.1-beta04" // TODO: Increment version for every new release & run the task at bottom to publish it
99
]
1010
repositories {
1111
google()

docs

Submodule docs added at 447d2d9

publish.gradle

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/*if (plugins.hasPlugin('org.gradle.api.plugins.JavaLibraryPlugin')) {
2-
apply plugin: 'java-library'
3-
}*/
41
apply plugin: 'maven-publish'
52
apply plugin: 'signing'
63

@@ -25,6 +22,16 @@ if (plugins.hasPlugin('com.android.library')) {
2522
archiveClassifier.set('sources')
2623
from android.sourceSets.main.java.srcDirs
2724
}
25+
} else {
26+
java {
27+
withJavadocJar()
28+
withSourcesJar()
29+
}
30+
javadoc {
31+
if (JavaVersion.current().isJava9Compatible()) {
32+
options.addBooleanOption('html5', true)
33+
}
34+
}
2835
}
2936

3037
ext["signing.keyId"] = ''
@@ -50,10 +57,6 @@ if (secretPropsFile.exists()) {
5057
ext["ossrhPassword"] = System.getenv('OSSRH_PASSWORD')
5158
}
5259

53-
signing {
54-
sign publishing.publications
55-
}
56-
5760
nexusStaging {
5861
packageGroup = PUBLISH_GROUP_ID
5962
stagingProfileId = 'c51d602c035a' // dummy example, replace with your own!
@@ -67,11 +70,11 @@ afterEvaluate { project ->
6770
publishing {
6871
publications {
6972
release(MavenPublication) {
70-
if (plugins.hasPlugin('org.gradle.api.plugins.JavaLibraryPlugin')) {
71-
from components.java
72-
} else if (plugins.hasPlugin('com.android.library')) {
73+
if (plugins.hasPlugin('com.android.library')) {
7374
from components.release
7475
artifact androidSourcesJar
76+
} else {
77+
from components.java
7578
}
7679

7780
groupId = PUBLISH_GROUP_ID
@@ -126,4 +129,8 @@ afterEvaluate { project ->
126129
}
127130
}
128131
}
132+
133+
signing {
134+
sign publishing.publications.release
135+
}
129136
}

0 commit comments

Comments
 (0)