Skip to content

Commit

Permalink
Change the project structure.
Browse files Browse the repository at this point in the history
* .groovy -> .kts
* Add 'com.vanniktech.maven.publish' plug in
* Version bump.
  • Loading branch information
LakeLab committed Jul 30, 2024
1 parent 5058ef7 commit 8d31ba0
Show file tree
Hide file tree
Showing 62 changed files with 566 additions and 759 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Android library for the adapter view (RecyclerView, ViewPager, ViewPager2)
## Without data binding
```groovy
dependencies {
def antonioVersion = '1.0.8-alpha'
def antonioVersion = '1.0.9-alpha'
implementation "io.github.naverz:antonio:$antonioVersion"
Expand All @@ -23,7 +23,7 @@ dependencies {
implementation "io.github.naverz:antonio-paging3:$antonioVersion"
// You can implement additional dependencies as bellow, if you want to use AntonioAnnotation.
def antonioAnnotationVersion = '0.0.7-alpha'
def antonioAnnotationVersion = '0.0.8-alpha'
implementation "io.github.naverz:antonio-annotation:$antonioAnnotationVersion"
//For java (You must select only one of kapt, ksp and annotationProcessor)
annotationProcessor "io.github.naverz:antonio-compiler:$antonioAnnotationVersion"
Expand All @@ -36,7 +36,7 @@ dependencies {
## With data binding
```groovy
dependencies {
def antonioVersion = '1.0.8-alpha'
def antonioVersion = '1.0.9-alpha'
implementation "io.github.naverz:antonio-databinding:$antonioVersion"
Expand Down
20 changes: 17 additions & 3 deletions antonio-annotation/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
import com.vanniktech.maven.publish.JavaLibrary
import com.vanniktech.maven.publish.JavadocJar

plugins {
id("java-library")
id("com.vanniktech.maven.publish") version "0.29.0"
}

mavenPublishing {
configure(
JavaLibrary(
javadocJar = JavadocJar.Javadoc(),
sourcesJar = true,
)
)
}
apply(from = "../gradle/release/release-java-lib.gradle")



java {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
5 changes: 5 additions & 0 deletions antonio-annotation/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
POM_NAME=Antonio annotation
POM_DESCRIPTION=Antonio annotation
POM_URL=https://github.com/naverz/Antonio/tree/master/antonio-annotation
POM_ARTIFACT_ID=antonio-annotation
VERSION_NAME=0.0.8-alpha
15 changes: 6 additions & 9 deletions antonio-compiler/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import io.github.naverz.antonio.buildsrc.*
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import io.github.naverz.antonio.buildsrc.Incap
import io.github.naverz.antonio.buildsrc.Processor


plugins {
kotlin("jvm")
id("com.vanniktech.maven.publish") version "0.29.0"
}
apply(from = "../gradle/release/release-java-lib.gradle")

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

tasks.withType<KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

dependencies {
Expand Down
5 changes: 5 additions & 0 deletions antonio-compiler/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
POM_NAME=Antonio compiler
POM_DESCRIPTION=Antonio compiler
POM_URL=https://github.com/naverz/Antonio/tree/master/antonio-compiler
POM_ARTIFACT_ID=antonio-compiler
VERSION_NAME=0.0.8-alpha
40 changes: 0 additions & 40 deletions antonio-core-paging2/build.gradle

This file was deleted.

37 changes: 37 additions & 0 deletions antonio-core-paging2/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import io.github.naverz.antonio.buildsrc.*

plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
id("com.vanniktech.maven.publish") version "0.29.0"
}

android {
namespace = "io.github.naverz.antonio.core.paging2"
compileSdk = COMPILE_SDK

defaultConfig {
minSdk = 16

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = "17"
freeCompilerArgs = freeCompilerArgs + "-opt-in=kotlin.RequiresOptIn"
}
}

dependencies {
implementation(Android.PAGING2)
implementation(project(path = ":antonio-core"))
testImplementation(TestDep.JUNIT)
androidTestImplementation(TestDep.EXT_JUNIT)
androidTestImplementation(TestDep.ESPRESSO)
}
5 changes: 5 additions & 0 deletions antonio-core-paging2/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
POM_NAME=Antonio core paging2
POM_DESCRIPTION=Antonio core paging2
POM_URL=https://github.com/naverz/Antonio/tree/master/antonio-core-paging2
POM_ARTIFACT_ID=antonio-core-paging2
VERSION_NAME=1.0.9-alpha
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.lakelab.antonio.paging2.core;
package io.github.naverz.antonio.paging2.core;

import android.content.Context;

Expand Down
2 changes: 1 addition & 1 deletion antonio-core-paging2/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.github.lakelab.antonio.paging2.core" />
<manifest package="io.github.naverz.antonio.core.paging2" />
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package io.github.lakelab.antonio.core.paging2;
package io.github.naverz.antonio.core.paging2;

import android.view.ViewGroup;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.lakelab.antonio.paging3.core;
package io.github.naverz.antonio.paging2.core;

import org.junit.Test;

Expand Down
39 changes: 0 additions & 39 deletions antonio-core-paging3/build.gradle

This file was deleted.

37 changes: 37 additions & 0 deletions antonio-core-paging3/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import io.github.naverz.antonio.buildsrc.*

plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
id("com.vanniktech.maven.publish") version "0.29.0"
}

android {
namespace = "io.github.naverz.antonio.core.paging3"
compileSdk = COMPILE_SDK

defaultConfig {
minSdk = 16

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = "17"
freeCompilerArgs = freeCompilerArgs + "-opt-in=kotlin.RequiresOptIn"
}
}

dependencies {
implementation(Android.PAGING3)
implementation(project(path = ":antonio-core"))
testImplementation(TestDep.JUNIT)
androidTestImplementation(TestDep.EXT_JUNIT)
androidTestImplementation(TestDep.ESPRESSO)
}
5 changes: 5 additions & 0 deletions antonio-core-paging3/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
POM_NAME=Antonio core paging3
POM_DESCRIPTION=Antonio core paging3
POM_URL=https://github.com/naverz/Antonio/tree/master/antonio-core-paging3
POM_ARTIFACT_ID=antonio-core-paging3
VERSION_NAME=1.0.9-alpha
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.lakelab.antonio.paging3.core;
package io.github.naverz.antonio.paging3.core;

import android.content.Context;

Expand Down
2 changes: 1 addition & 1 deletion antonio-core-paging3/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.github.lakelab.antonio.paging3.core" />
<manifest package="io.github.naverz.antonio.core.paging3" />
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package io.github.lakelab.antonio.core.paging3;
package io.github.naverz.antonio.core.paging3;

import android.view.ViewGroup;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package io.github.lakelab.antonio.core.paging3;
package io.github.naverz.antonio.core.paging3;

import android.view.ViewGroup;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.lakelab.antonio.paging2.core;
package io.github.naverz.antonio.paging3.core;

import org.junit.Test;

Expand Down
45 changes: 0 additions & 45 deletions antonio-core/build.gradle

This file was deleted.

Loading

0 comments on commit 8d31ba0

Please sign in to comment.