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

Commit 175161c

Browse files
committed
implement gradle maven publish
1 parent 7c824c1 commit 175161c

17 files changed

Lines changed: 68 additions & 13 deletions

File tree

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ buildscript {
66
repositories {
77
google()
88
jcenter()
9+
mavenCentral()
910
}
1011
dependencies {
1112
classpath deps.androidGradlePlugin
1213
classpath deps.kotlin.dokka
1314
classpath deps.kotlin.gradlePlugin
15+
classpath deps.mavenPublish
1416
}
1517
}
1618

docs/releasing.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ extra:
2727
```
2828
rm -rf docs/topl-core docs/topl-core-base docs/topl-service
2929
./gradlew topl-core-base:dokka topl-core:dokka topl-service:dokka
30+
```
31+
32+
- Fix Dokka doc links
33+
```
3034
./gradlew fixDokkaDocLinks
3135
```
3236

docs/topl-core-base/io.matthewnelson.topl_core_base/-tor-config-files/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ See [Companion.createConfig](create-config.md) or [Builder](-builder/index.md) t
2828
| [hiddenServiceDir](hidden-service-dir.md) | `val hiddenServiceDir: `[`File`](https://docs.oracle.com/javase/6/docs/api/java/io/File.html) |
2929
| [hostnameFile](hostname-file.md) | The <base32-encoded-fingerprint>.onion domain name for this hidden service. If the hidden service is restricted to authorized clients only, this file also contains authorization data for all clients.`val hostnameFile: `[`File`](https://docs.oracle.com/javase/6/docs/api/java/io/File.html) |
3030
| [installDir](install-dir.md) | `val installDir: `[`File`](https://docs.oracle.com/javase/6/docs/api/java/io/File.html) |
31-
| [libraryPath](library-path.md) | `val libraryPath: `[`File`](https://docs.oracle.com/javase/6/docs/api/java/io/File.html) |
31+
| [libraryPath](library-path.md) | `val libraryPath: `[`File`](https://docs.oracle.com/javase/6/docs/api/java/io/File.html)`?` |
3232
| [resolveConf](resolve-conf.md) | `val resolveConf: `[`File`](https://docs.oracle.com/javase/6/docs/api/java/io/File.html) |
3333
| [torExecutableFile](tor-executable-file.md) | `val torExecutableFile: `[`File`](https://docs.oracle.com/javase/6/docs/api/java/io/File.html) |
3434
| [torrcFile](torrc-file.md) | `var torrcFile: `[`File`](https://docs.oracle.com/javase/6/docs/api/java/io/File.html) |

docs/topl-core-base/io.matthewnelson.topl_core_base/-tor-config-files/library-path.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
# libraryPath
44

5-
`val libraryPath: `[`File`](https://docs.oracle.com/javase/6/docs/api/java/io/File.html) [(source)](https://github.com/05nelsonm/TorOnionProxyLibrary-Android/blob/master/topl-core-base/src/main/java/io/matthewnelson/topl_core_base/TorConfigFiles.kt#L84)
5+
`val libraryPath: `[`File`](https://docs.oracle.com/javase/6/docs/api/java/io/File.html)`?` [(source)](https://github.com/05nelsonm/TorOnionProxyLibrary-Android/blob/master/topl-core-base/src/main/java/io/matthewnelson/topl_core_base/TorConfigFiles.kt#L84)

docs/topl-core/io.matthewnelson.topl_core.util/-file-utilities/clean-install-one-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# cleanInstallOneFile
44

5-
`fun cleanInstallOneFile(readFrom: `[`InputStream`](https://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html)`, fileToWriteTo: `[`File`](https://docs.oracle.com/javase/6/docs/api/java/io/File.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/05nelsonm/TorOnionProxyLibrary-Android/blob/master/topl-core/src/main/java/io/matthewnelson/topl_core/util/FileUtilities.kt#L186)
5+
`fun cleanInstallOneFile(readFrom: `[`InputStream`](https://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html)`, fileToWriteTo: `[`File`](https://docs.oracle.com/javase/6/docs/api/java/io/File.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/05nelsonm/TorOnionProxyLibrary-Android/blob/master/topl-core/src/main/java/io/matthewnelson/topl_core/util/FileUtilities.kt#L188)
66

77
Reads the input stream, deletes fileToWriteTo if it exists and over writes it with the stream.
88

docs/topl-core/io.matthewnelson.topl_core.util/-file-utilities/extract-content-from-zip.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# extractContentFromZip
44

5-
`fun extractContentFromZip(destinationDirectory: `[`File`](https://docs.oracle.com/javase/6/docs/api/java/io/File.html)`, zipFileInputStream: `[`InputStream`](https://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/05nelsonm/TorOnionProxyLibrary-Android/blob/master/topl-core/src/main/java/io/matthewnelson/topl_core/util/FileUtilities.kt#L211)
5+
`fun extractContentFromZip(destinationDirectory: `[`File`](https://docs.oracle.com/javase/6/docs/api/java/io/File.html)`, zipFileInputStream: `[`InputStream`](https://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/05nelsonm/TorOnionProxyLibrary-Android/blob/master/topl-core/src/main/java/io/matthewnelson/topl_core/util/FileUtilities.kt#L215)
66

77
This has to exist somewhere! Why isn't it a part of the standard Java library?
88

docs/topl-core/io.matthewnelson.topl_core.util/-file-utilities/read.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
# read
44

5-
`fun read(f: `[`File`](https://docs.oracle.com/javase/6/docs/api/java/io/File.html)`): `[`ByteArray`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) [(source)](https://github.com/05nelsonm/TorOnionProxyLibrary-Android/blob/master/topl-core/src/main/java/io/matthewnelson/topl_core/util/FileUtilities.kt#L161)
5+
`fun read(f: `[`File`](https://docs.oracle.com/javase/6/docs/api/java/io/File.html)`): `[`ByteArray`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) [(source)](https://github.com/05nelsonm/TorOnionProxyLibrary-Android/blob/master/topl-core/src/main/java/io/matthewnelson/topl_core/util/FileUtilities.kt#L163)

docs/topl-core/io.matthewnelson.topl_core.util/-file-utilities/recursive-file-delete.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
# recursiveFileDelete
44

5-
`fun recursiveFileDelete(fileOrDirectory: `[`File`](https://docs.oracle.com/javase/6/docs/api/java/io/File.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/05nelsonm/TorOnionProxyLibrary-Android/blob/master/topl-core/src/main/java/io/matthewnelson/topl_core/util/FileUtilities.kt#L195)
5+
`fun recursiveFileDelete(fileOrDirectory: `[`File`](https://docs.oracle.com/javase/6/docs/api/java/io/File.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/05nelsonm/TorOnionProxyLibrary-Android/blob/master/topl-core/src/main/java/io/matthewnelson/topl_core/util/FileUtilities.kt#L197)

gradle.properties

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,26 @@ android.enableJetifier=true
2020
# Kotlin code style for this project: "official" or "obsolete":
2121
kotlin.code.style=official
2222

23+
GROUP=io.matthewnelson.topl-android
2324
VERSION_NAME=1.0.0-alpha01-SNAPSHOT
25+
26+
# The trailing 2 digits are for `alpha##` releases. For example:
27+
# 4.4.1-alpha02 = 441102 where `102` stands for alpha02
28+
# 4.4.1-beta01 = 441201 where `201` stands for beta01
29+
# 4.4.1-rc01 = 441301 where `301` stands for rc01
30+
VERSION_CODE=100101
31+
32+
POM_INCEPTION_YEAR=2020
33+
34+
POM_URL=https://github.com/05nelsonm/TorOnionProxyLibrary-Android
35+
POM_SCM_URL=https://github.com/05nelsonm/TorOnionProxyLibrary-Android
36+
POM_SCM_CONNECTION=scm:git:git://github.com/05nelsonm/TorOnionProxyLibrary-Android.git
37+
POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/05nelsonm/TorOnionProxyLibrary-Android.git
38+
39+
POM_LICENCE_NAME=GNU General Public License, Version 3.0
40+
POM_LICENCE_URL=https://www.gnu.org/licenses/gpl-3.0.html
41+
POM_LICENCE_DIST=repo
42+
43+
POM_DEVELOPER_ID=05nelsonm
44+
POM_DEVELOPER_NAME=Matthew Nelson
45+
POM_DEVELOPER_URL=https://github.com/05nelsonm/

gradle/dependencies.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ext.versions = [
22
'buildTools': "29.0.3",
3-
'compileSdk': 28,
3+
'compileSdk': 29,
44
'minSdk': 16,
55

66
'coroutines': '1.3.7',
@@ -39,5 +39,6 @@ ext.deps = [
3939
gradlePlugin: "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}",
4040
stdlib: "org.jetbrains.kotlin:kotlin-stdlib:${versions.kotlin}",
4141
],
42+
mavenPublish: "com.vanniktech:gradle-maven-publish-plugin:0.12.0",
4243
robolectric: "org.robolectric:robolectric:4.3.1",
4344
]

0 commit comments

Comments
 (0)