Skip to content

Commit

Permalink
Set up ext-acorn-experimental module
Browse files Browse the repository at this point in the history
This allows experimental features to be placed into
a separate artifact.
  • Loading branch information
nhaarman committed Mar 4, 2019
1 parent c4d8d2b commit 7101638
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
1 change: 1 addition & 0 deletions .idea/inspectionProfiles/ktlint.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions ext/acorn/acorn-experimental/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
plugins {
id("org.jetbrains.kotlin.jvm")
id("org.gradle.java-library")

id("org.jetbrains.dokka")
id("org.gradle.maven-publish")
id("signing")
}

dependencies {
api project(":acorn")
api project(":ext-acorn")

implementation "org.jetbrains.kotlin:kotlin-stdlib"

compileOnly "androidx.annotation:annotation"

testImplementation "com.nhaarman:expect.kt"
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin"
testImplementation "org.junit.jupiter:junit-jupiter-api"
testRuntime "org.junit.jupiter:junit-jupiter-engine"
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
freeCompilerArgs = ["-Xuse-experimental=kotlin.Experimental"]
}
}
2 changes: 2 additions & 0 deletions ext/acorn/acorn-experimental/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
groupId=com.nhaarman.acorn.ext
artifactId=acorn-experimental
8 changes: 7 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ include(":ext-acorn-android-lint")
include(":ext-acorn-android-timber")
include(":ext-acorn-android-appcompat")
include(":ext-acorn-android-lifecycle")
include(":ext-acorn-android-statechecks")

include(":ext-acorn-experimental")

include(":samples:hello-world")
include(":samples:hello-navigation")
Expand All @@ -38,5 +41,8 @@ project(":ext-acorn-android-lint").projectDir = file("ext/acorn-android/acorn-an
project(":ext-acorn-android-timber").projectDir = file("ext/acorn-android/acorn-android-timber")
project(":ext-acorn-android-appcompat").projectDir = file("ext/acorn-android/acorn-android-appcompat")
project(":ext-acorn-android-lifecycle").projectDir = file("ext/acorn-android/acorn-android-lifecycle")
project(":ext-acorn-android-statechecks").projectDir = file("ext/acorn-android/acorn-android-statechecks")

project(":ext-acorn-experimental").projectDir = file("ext/acorn/acorn-experimental")

enableFeaturePreview("STABLE_PUBLISHING")
enableFeaturePreview("STABLE_PUBLISHING")

0 comments on commit 7101638

Please sign in to comment.