-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start migrating to build.gradle.kts; create ksp module * Get ksp to running-but-failing-in-tests state * Reimplement source code analysis for KSP * Fix basic activity generation * Re-add fragment, service, and stub support * Remove kapt implementation * Fix Robolectric warning; suppress unused warnings in stubs * Allow source level opt-in; switch to kotlin-parcelize plugin * Update config/ci to be closer to other juul oss repos * Add gradlePluginPortal() for org.jetbrains.trove4j:trove4j:20160824 * Fix Kotlinter issues * More fixes in ci and gradle scripts * Generate params class with @AsStub instead of @FromStub This was done to solve issues with stubs across multiple modules. KSP was not properly carrying annotation arguments across the module boundary (that is, even though we could see annotations on the stub class, @Exercise.params was artificially empty). * Update KSP to alpha 6 and small cleanups
- Loading branch information
1 parent
ecf4879
commit 1255e06
Showing
91 changed files
with
1,256 additions
and
1,192 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# https://github.com/release-drafter/release-drafter#configuration-options | ||
|
||
exclude-labels: | ||
- 'skip-changelog' | ||
|
||
change-template: '- $TITLE (#$NUMBER)' | ||
|
||
template: $CHANGES |
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Publish | ||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-18.04 | ||
|
||
env: | ||
GRADLE_ARGS: >- | ||
--no-daemon | ||
--max-workers 2 | ||
-Pkotlin.incremental=false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
|
||
- name: Gradle cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
~/.konan | ||
key: ${{ runner.os }}-publish-${{ hashFiles('**/build.gradle.kts') }} | ||
restore-keys: | | ||
${{ runner.os }}-publish- | ||
${{ runner.os }}- | ||
- name: Check | ||
run: ./gradlew $GRADLE_ARGS check | ||
|
||
- name: Keyring | ||
run: echo "${{ secrets.SIGNING_SECRET_KEY_RING }}" | base64 --decode > ~/secring.gpg | ||
|
||
- name: Publish | ||
env: | ||
SONATYPE_NEXUS_USERNAME: ${{ secrets.OSS_SONATYPE_NEXUS_USERNAME }} | ||
SONATYPE_NEXUS_PASSWORD: ${{ secrets.OSS_SONATYPE_NEXUS_PASSWORD }} | ||
run: >- | ||
./gradlew | ||
$GRADLE_ARGS | ||
--no-parallel | ||
-PVERSION_NAME=${GITHUB_REF/refs\/tags\//} | ||
-Psigning.keyId="${{ secrets.SIGNING_KEY_ID }}" | ||
-Psigning.password="${{ secrets.SIGNING_PASSWORD }}" | ||
-Psigning.secretKeyRingFile="$HOME/secring.gpg" | ||
uploadArchives |
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,15 @@ | ||
name: Release Drafter | ||
# https://github.com/release-drafter/release-drafter#usage | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
update_release_draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: release-drafter/release-drafter@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,50 @@ | ||
name: Snapshot | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
snapshot: | ||
runs-on: ubuntu-18.04 | ||
|
||
env: | ||
GRADLE_ARGS: >- | ||
--no-daemon | ||
--max-workers 2 | ||
-Pkotlin.incremental=false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
|
||
- name: Gradle cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
~/.konan | ||
key: ${{ runner.os }}-snapshot-${{ hashFiles('**/build.gradle.kts') }} | ||
restore-keys: | | ||
${{ runner.os }}-snapshot- | ||
${{ runner.os }}- | ||
- name: Check | ||
run: ./gradlew $GRADLE_ARGS check | ||
|
||
- name: Snapshot | ||
env: | ||
SONATYPE_NEXUS_USERNAME: ${{ secrets.OSS_SONATYPE_NEXUS_USERNAME }} | ||
SONATYPE_NEXUS_PASSWORD: ${{ secrets.OSS_SONATYPE_NEXUS_PASSWORD }} | ||
run: >- | ||
./gradlew | ||
$GRADLE_ARGS | ||
--no-parallel | ||
-PVERSION_NAME=main-SNAPSHOT | ||
uploadArchives |
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,9 +1,9 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/* | ||
/.idea | ||
.DS_Store | ||
/build | ||
build/ | ||
/captures | ||
.externalNativeBuild | ||
.cxx |
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.
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,30 @@ | ||
public abstract interface annotation class com/juul/exercise/annotations/AsStub : java/lang/annotation/Annotation { | ||
public abstract fun className ()Ljava/lang/String; | ||
public abstract fun packageName ()Ljava/lang/String; | ||
} | ||
|
||
public abstract interface annotation class com/juul/exercise/annotations/Exercise : java/lang/annotation/Annotation { | ||
public abstract fun params ()[Lcom/juul/exercise/annotations/ExerciseParameter; | ||
} | ||
|
||
public abstract interface annotation class com/juul/exercise/annotations/ExerciseParameter : java/lang/annotation/Annotation { | ||
public abstract fun name ()Ljava/lang/String; | ||
public abstract fun optional ()Z | ||
public abstract fun parceler ()Ljava/lang/Class; | ||
public abstract fun type ()Ljava/lang/Class; | ||
public abstract fun typeArguments ()[Ljava/lang/Class; | ||
} | ||
|
||
public abstract interface annotation class com/juul/exercise/annotations/FromStub : java/lang/annotation/Annotation { | ||
public abstract fun source ()Ljava/lang/Class; | ||
} | ||
|
||
public abstract interface annotation class com/juul/exercise/annotations/ResultContract : java/lang/annotation/Annotation { | ||
public abstract fun kinds ()[Lcom/juul/exercise/annotations/ResultKind; | ||
} | ||
|
||
public abstract interface annotation class com/juul/exercise/annotations/ResultKind : java/lang/annotation/Annotation { | ||
public abstract fun name ()Ljava/lang/String; | ||
public abstract fun params ()[Lcom/juul/exercise/annotations/ExerciseParameter; | ||
} | ||
|
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
plugins { | ||
kotlin("jvm") | ||
id("org.jmailen.kotlinter") | ||
jacoco | ||
id("com.vanniktech.maven.publish") | ||
} | ||
|
||
apply(from = rootProject.file("gradle/jacoco.gradle.kts")) |
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.
Oops, something went wrong.