Skip to content

Commit

Permalink
released to jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
ezechuka committed Mar 1, 2022
2 parents f8cc081 + d824b5d commit 740f392
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 51 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/com/javalon/roomie/Person.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package com.javalon.roomie

data class Person()
9 changes: 6 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,25 @@ buildscript {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath "com.android.tools.build:gradle:4.2.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

classpath "com.github.dcendents:android-maven-gradle-plugin:2.1"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

repositories {
mavenCentral()
}

allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://jitpack.io'}
}
}

Expand Down
22 changes: 8 additions & 14 deletions roomie-annotation/build.gradle
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
plugins {
id 'java-library'
id 'kotlin'
id 'maven-publish'
id 'com.github.dcendents.android-maven'
}

group = "com.github.ezechuka"
version = "1.0.0-beta01"

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
repositories {
mavenCentral()
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
groupId = 'com.roomie'
artifactId = 'core'
version = '1.0.0'
}
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
30 changes: 15 additions & 15 deletions roomie-processor/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
plugins {
id 'java-library'
id 'kotlin'
id 'maven-publish'
id 'com.github.dcendents.android-maven'
}

group = "com.github.ezechuka"
version = "1.0.0-beta01"

sourceSets.main {
java.srcDirs("src/main/java")
}

repositories {
mavenCentral()
}

java {
Expand All @@ -12,19 +22,9 @@ java {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"

implementation project(path: ':roomie-annotation')
implementation project(':roomie-annotation')
compileOnly project(':roomie-annotation')

implementation 'com.squareup:kotlinpoet:1.4.4'
implementation 'com.google.code.gson:gson:2.9.0'
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
groupId = 'com.roomie'
artifactId = 'generator'
version = '1.0.0'
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Processor: AbstractProcessor() {
}

override fun process(p0: MutableSet<out TypeElement>?, roundEnv: RoundEnvironment?): Boolean {
val kaptKotlinGeneratedDir = processingEnv.options[KAPT_KOTLIN_GENERATED_HOME_NAME]
val kaptKotlinGeneratedDir = processingEnv.options[KAPT_KOTLIN_GENERATED_OPTION_NAME]
?: return false

roundEnv?.getElementsAnnotatedWith(AddConverter::class.java)?.forEach {
Expand Down Expand Up @@ -76,6 +76,6 @@ class Processor: AbstractProcessor() {
}

companion object {
const val KAPT_KOTLIN_GENERATED_HOME_NAME = "kapt.kotlin.generated"
const val KAPT_KOTLIN_GENERATED_OPTION_NAME = "kapt.kotlin.generated"
}
}

This file was deleted.

0 comments on commit 740f392

Please sign in to comment.