-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'multiplatform' into master
* origin/multiplatform: Multiplatform support
- Loading branch information
Showing
24 changed files
with
1,583 additions
and
373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,34 @@ | ||
plugins { | ||
kotlin("jvm") version "1.7.10" | ||
id("org.jetbrains.dokka") version "1.7.10" | ||
signing | ||
`maven-publish` | ||
} | ||
|
||
group = "tech.inner" | ||
version = "1.2" | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation(kotlin("stdlib-jdk8")) | ||
group = LibraryConstants.group | ||
version = LibraryConstants.versionName | ||
|
||
testApi("org.junit.jupiter:junit-jupiter-api:5.8.2") | ||
testImplementation("com.mercateo:test-clock:1.0.2") | ||
testImplementation("io.strikt:strikt-core:0.33.0") | ||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.2") | ||
} | ||
|
||
val dokkaHtml by tasks.getting(org.jetbrains.dokka.gradle.DokkaTask::class) | ||
|
||
val javadocJar: TaskProvider<Jar> by tasks.registering(Jar::class) { | ||
dependsOn(dokkaHtml) | ||
archiveClassifier.set("javadoc") | ||
from(dokkaHtml.outputDirectory) | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
buildscript { | ||
repositories { | ||
google() | ||
mavenCentral() | ||
maven("https://repo.repsy.io/mvn/chrynan/public") | ||
} | ||
dependencies { | ||
classpath("com.android.tools.build:gradle:7.2.2") | ||
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10") | ||
classpath("org.jetbrains.dokka:dokka-gradle-plugin:1.7.10") | ||
} | ||
} | ||
|
||
tasks.named<Test>("test") { | ||
useJUnitPlatform() | ||
} | ||
apply(plugin = "org.jetbrains.dokka") | ||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>("mavenCentral") { | ||
artifact(javadocJar) | ||
from(components["java"]) | ||
pom { | ||
name.set(project.name) | ||
description.set("Signed URLs loosely using Hawk Bewits") | ||
url.set("https://github.com/innertech/hawk-bewit") | ||
licenses { | ||
license { | ||
name.set("The Apache License, Version 2.0") | ||
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") | ||
} | ||
} | ||
developers { | ||
developer { | ||
id.set("rocketraman") | ||
name.set("Raman Gupta") | ||
email.set("rocketraman@gmail.com") | ||
} | ||
} | ||
scm { | ||
connection.set("scm:git:git@github.com:rocketraman/bootable.git") | ||
developerConnection.set("scm:git:ssh://github.com:rocketraman/bootable.git") | ||
url.set("https://github.com/innertech/hawk-bewit") | ||
} | ||
} | ||
} | ||
} | ||
allprojects { | ||
repositories { | ||
maven { | ||
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2") | ||
credentials { | ||
username = project.findProperty("sonatypeUser") as? String | ||
password = project.findProperty("sonatypePassword") as? String | ||
} | ||
} | ||
google() | ||
mavenCentral() | ||
maven("https://repo.repsy.io/mvn/chrynan/public") | ||
} | ||
} | ||
|
||
signing { | ||
useGpgCmd() | ||
sign(publishing.publications["mavenCentral"]) | ||
rootProject.plugins.withType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin> { | ||
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().nodeVersion = "16.0.0" | ||
} | ||
|
||
// Documentation | ||
tasks.named<org.jetbrains.dokka.gradle.DokkaMultiModuleTask>("dokkaGfmMultiModule").configure { | ||
outputDirectory.set(file("${projectDir.path}/docs")) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
`kotlin-dsl-precompiled-script-plugins` | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
object LibraryConstants { | ||
const val group = "tech.inner" | ||
const val owner = "innertech" | ||
const val versionName = "1.2" | ||
const val versionCode = 1 | ||
|
||
object Android { | ||
const val compileSdkVersion = 30 | ||
const val minSdkVersion = 23 | ||
const val targetSdkVersion = 29 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
kotlin.code.style=official | ||
kotlin.code.style=official | ||
kotlin.mpp.stability.nowarn=true | ||
kotlin.native.distribution.type=prebuilt | ||
#kotlin.native.binary.memoryModel=experimental | ||
kotlin.native.ignoreDisabledTargets=true | ||
android.useAndroidX=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.