Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Foso/MpApt
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.8.7
Choose a base ref
...
head repository: Foso/MpApt
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 8 commits
  • 18 files changed
  • 1 contributor

Commits on May 30, 2021

  1. Update to Kotlin 1.5.10

    Foso committed May 30, 2021
    Copy the full SHA
    bee9ef3 View commit details

Commits on Jun 1, 2021

  1. Update to Kotlin 1.5.10

    Foso committed Jun 1, 2021
    Copy the full SHA
    c73d3cf View commit details
  2. Update to Kotlin 1.5.10

    Foso committed Jun 1, 2021
    Copy the full SHA
    97aef2b View commit details
  3. Update Readme.md

    Foso authored Jun 1, 2021
    Copy the full SHA
    841d130 View commit details

Commits on Mar 25, 2022

  1. Update Readme.md

    Foso authored Mar 25, 2022
    Copy the full SHA
    70dda32 View commit details

Commits on May 28, 2022

  1. Update Readme.md

    Foso authored May 28, 2022
    Copy the full SHA
    c070b76 View commit details

Commits on May 29, 2022

  1. Update Readme.md

    Foso authored May 29, 2022
    Copy the full SHA
    fbfe47c View commit details

Commits on Aug 20, 2022

  1. Update Readme.md

    Foso authored Aug 20, 2022
    Copy the full SHA
    f1f3ede View commit details
16 changes: 7 additions & 9 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@


<h1 align="center">MpApt - Kotlin (Native/JS/JVM) Annotation Processor library</h1>

[![jCenter](https://img.shields.io/badge/Kotlin-1.3.71-green.svg
)](https://github.com/Foso/MpApt/blob/master/LICENSE)[![jCenter](https://img.shields.io/badge/Apache-2.0-green.svg)](https://github.com/Foso/MpApt/blob/master/LICENSE)
[![All Contribtors](https://img.shields.io/badge/Maven-Central-download.svg?style=flat-square)](https://mvnrepository.com/artifact/de.jensklingenberg/mpapt-runtime)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
[![All Contributors](https://img.shields.io/badge/all_contributors-2-range.svg?style=flat-square)](#contributors)
<a href="https://twitter.com/intent/tweet?text=Hey, check out MpApt https://github.com/Foso/MpApt via @jklingenberg_ #Kotlin
"><img src="https://img.shields.io/twitter/url/https/github.com/angular-medellin/meetup.svg?style=social" alt="Tweet"></a>
[![Kotlinlang slack](https://img.shields.io/static/v1?label=kotlinlang&message=MpApt&color=brightgreen&logo=slack&style=flat-square)](https://app.slack.com/client/T09229ZC6/CNDF01UPR)



## Introduction 🙋‍♂️ 🙋‍
I wrote an annotation processing libary that can detect annotations in Kotlin Native/JS and Jvm projects, because Kapt is only working with KotlinJvm. The library can be used in Kotlin Compiler plugins. Tested with Kotlin 1.3.71,1.4.0
> **Note**
> This project is deprecated, when you are looking for a multiplatform annotation processor, please take a look at [KSP](https://github.com/google/ksp)
I wrote an annotation processing libary that can detect annotations in Kotlin Native/JS and Jvm projects, because Kapt is only working with KotlinJvm. The library can be used in Kotlin Compiler plugins. Tested with Kotlin 1.4.0,1.5.10

It can detect annotations with following targets:
```groovy
2 changes: 1 addition & 1 deletion annotations/build.gradle
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ buildscript {
}

plugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.4.0-rc'
id 'org.jetbrains.kotlin.multiplatform' version '1.5.10'
id "maven"
id("maven-publish")

11 changes: 5 additions & 6 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.4.0-rc'
ext.kotlin_version = '1.5.10'


repositories {
@@ -23,7 +23,7 @@ buildscript {


plugins {
id 'org.jetbrains.kotlin.jvm' version '1.4.0-rc'
id 'org.jetbrains.kotlin.jvm' version '1.5.10'
id 'com.gradle.plugin-publish' version '0.10.1'
}
apply plugin: "java-gradle-plugin"
@@ -53,10 +53,9 @@ gradlePlugin {
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compile "org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.4.0-rc"
compileOnly "com.google.auto.service:auto-service:1.0-rc6"
kapt "com.google.auto.service:auto-service:1.0-rc6"
compile "org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.5.10"
compileOnly "com.google.auto.service:auto-service:1.0"
kapt "com.google.auto.service:auto-service:1.0"
}


8 changes: 4 additions & 4 deletions demoProject/buildSrc/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.4.0-rc'
ext.kotlin_version = '1.5.10'


repositories {
@@ -23,7 +23,7 @@ buildscript {


plugins {
id 'org.jetbrains.kotlin.jvm' version '1.4.0-rc'
id 'org.jetbrains.kotlin.jvm' version '1.5.10'
}
apply plugin: "java-gradle-plugin"
apply plugin: "kotlin-kapt"
@@ -53,9 +53,9 @@ gradlePlugin {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compile "org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.4.0-rc"
compile "org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.5.10"
compileOnly "com.google.auto.service:auto-service:1.0-rc7"
kapt "com.google.auto.service:auto-service:1.0-rc6"
kapt "com.google.auto.service:auto-service:1.0"
}


2 changes: 1 addition & 1 deletion demoProject/example/build.gradle
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ buildscript {

}
plugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.4.0-rc'
id 'org.jetbrains.kotlin.multiplatform' version '1.5.10'
}


2 changes: 1 addition & 1 deletion demoProject/ktorfit-annotations/build.gradle
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ buildscript {
}

plugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.4.0-rc'
id 'org.jetbrains.kotlin.multiplatform' version '1.5.10'
id "maven"
id("maven-publish")

6 changes: 3 additions & 3 deletions demoProject/ktorfit-compiler/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.4.0-rc'
ext.kotlin_version = '1.5.10'


repositories {
@@ -45,8 +45,8 @@ dependencies {
compile project(':ktorfit-shared')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compileOnly "org.jetbrains.kotlin:kotlin-compiler-embeddable"
compileOnly "com.google.auto.service:auto-service:1.0-rc6"
kapt "com.google.auto.service:auto-service:1.0-rc6"
compileOnly "com.google.auto.service:auto-service:1.0"
kapt "com.google.auto.service:auto-service:1.0"
}

build{
9 changes: 4 additions & 5 deletions demoProject/ktorfit-shared/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.4.0-rc'
ext.kotlin_version = '1.5.10'


repositories {
@@ -42,12 +42,11 @@ repositories {

dependencies {
implementation 'com.squareup:kotlinpoet:1.3.0'
compile 'de.jensklingenberg:mpapt-runtime:0.8.7'
compile 'de.jensklingenberg:mpapt-runtime:0.8.8'
compile "de.jensklingenberg.ktorfit:ktorfit-annotations-jvm:0.0.1"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compileOnly "org.jetbrains.kotlin:kotlin-compiler-embeddable"
compileOnly "com.google.auto.service:auto-service:1.0-rc6"
kapt "com.google.auto.service:auto-service:1.0-rc6"
compileOnly "com.google.auto.service:auto-service:1.0"
kapt "com.google.auto.service:auto-service:1.0"
}


4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v0.8.8
========================================
Update to Kotlin 1.5.10, same api as 0.8.6

v0.8.7
========================================
Update to Kotlin 1.4.0, same api as 0.8.6
3 changes: 1 addition & 2 deletions example/build.gradle
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ buildscript {
}

plugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.4.0-rc'
id 'org.jetbrains.kotlin.multiplatform' version '1.5.10'
id 'de.jensklingenberg.mpapt'
}

@@ -94,7 +94,6 @@ kotlin {

jvmMain {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
}
}
jvmTest {
6 changes: 3 additions & 3 deletions kotlin-compiler-native-plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.4.0-rc'
ext.kotlin_version = '1.5.10'


repositories {
@@ -39,8 +39,8 @@ compileKotlin {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib"
compileOnly "org.jetbrains.kotlin:kotlin-compiler"
compileOnly "com.google.auto.service:auto-service:1.0-rc6"
kapt "com.google.auto.service:auto-service:1.0-rc6"
compileOnly "com.google.auto.service:auto-service:1.0"
kapt "com.google.auto.service:auto-service:1.0"
compile project(':kotlin-plugin-shared')


6 changes: 3 additions & 3 deletions kotlin-plugin-shared/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.4.0-rc'
ext.kotlin_version = '1.5.10'


repositories {
@@ -46,8 +46,8 @@ dependencies {
compile "de.jensklingenberg.mpapt.testAnnotations:annotations-jvm:0.0.1"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compileOnly "org.jetbrains.kotlin:kotlin-compiler-embeddable"
compileOnly "com.google.auto.service:auto-service:1.0-rc6"
kapt "com.google.auto.service:auto-service:1.0-rc6"
compileOnly "com.google.auto.service:auto-service:1.0"
kapt "com.google.auto.service:auto-service:1.0"
testImplementation 'com.github.tschuchortdev:kotlin-compile-testing:1.2.5'


7 changes: 3 additions & 4 deletions kotlin-plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.4.0-rc'
ext.kotlin_version = '1.5.10'


repositories {
@@ -43,10 +43,9 @@ repositories {

dependencies {
compile project(':kotlin-plugin-shared')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compileOnly "org.jetbrains.kotlin:kotlin-compiler-embeddable"
compileOnly "com.google.auto.service:auto-service:1.0-rc6"
kapt "com.google.auto.service:auto-service:1.0-rc6"
compileOnly "com.google.auto.service:auto-service:1.0"
kapt "com.google.auto.service:auto-service:1.0"
}

build{
11 changes: 5 additions & 6 deletions mpapt-runtime/build.gradle
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ buildscript {


plugins {
id 'org.jetbrains.kotlin.jvm' version '1.4.0-rc'
id 'org.jetbrains.kotlin.jvm' version '1.5.10'
id 'signing'
id 'maven-publish'
id 'io.codearte.nexus-staging' version '0.21.0'
@@ -34,7 +34,7 @@ allprojects {

group = "de.jensklingenberg"
archivesBaseName = "mpapt-runtime"
version = "0.8.7"
version = "0.8.8"

install {
repositories.mavenInstaller {
@@ -51,10 +51,9 @@ compileKotlin {


dependencies {
compileOnly "org.jetbrains.kotlin:kotlin-stdlib"
compileOnly "org.jetbrains.kotlin:kotlin-compiler-embeddable:1.4.0-rc"
compileOnly "com.google.auto.service:auto-service:1.0-rc6"
kapt "com.google.auto.service:auto-service:1.0-rc6"
compileOnly "org.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.10"
compileOnly "com.google.auto.service:auto-service:1.0"
kapt "com.google.auto.service:auto-service:1.0"
}


10 changes: 5 additions & 5 deletions nativeDemo/buildSrc/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.4.0-rc'
ext.kotlin_version = '1.5.10'


repositories {
@@ -23,7 +23,7 @@ buildscript {


plugins {
id 'org.jetbrains.kotlin.jvm' version '1.4.0-rc'
id 'org.jetbrains.kotlin.jvm' version '1.5.10'
}
apply plugin: "java-gradle-plugin"
apply plugin: "kotlin-kapt"
@@ -53,9 +53,9 @@ gradlePlugin {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compile "org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.4.0-rc"
compileOnly "com.google.auto.service:auto-service:1.0-rc6"
kapt "com.google.auto.service:auto-service:1.0-rc6"
compile "org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.5.10"
compileOnly "com.google.auto.service:auto-service:1.0"
kapt "com.google.auto.service:auto-service:1.0"
}


2 changes: 1 addition & 1 deletion nativeDemo/example/build.gradle
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ buildscript {

}
plugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.4.0-rc'
id 'org.jetbrains.kotlin.multiplatform' version '1.5.10'
}


8 changes: 4 additions & 4 deletions nativeDemo/native-plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.4.0-rc'
ext.kotlin_version = '1.5.10'


repositories {
@@ -39,9 +39,9 @@ compileKotlin {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib"
compileOnly "org.jetbrains.kotlin:kotlin-compiler"
compile 'de.jensklingenberg:mpapt-runtime:0.8.7'
compileOnly "com.google.auto.service:auto-service:1.0-rc6"
kapt "com.google.auto.service:auto-service:1.0-rc6"
compile 'de.jensklingenberg:mpapt-runtime:0.8.8'
compileOnly "com.google.auto.service:auto-service:1.0"
kapt "com.google.auto.service:auto-service:1.0"
compile "de.jensklingenberg.nativedemo:nativedemo-annotations-jvm:0.0.1"

}
2 changes: 1 addition & 1 deletion nativeDemo/nativedemo-annotations/build.gradle
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ buildscript {
}

plugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.4.0-rc'
id 'org.jetbrains.kotlin.multiplatform' version '1.5.10'
id "maven"
id("maven-publish")