Skip to content

Release v1.0.1

Latest
Compare
Choose a tag to compare
@amirisback amirisback released this 07 Oct 00:31

jitpack-library-kotlin-dsl-guide


For openJDK 11 and AGP 7.0.0 +

Repository for testing build from jitpack.io

  • Red : Failed
  • Green : Success / Pass

Version Release

This Is Latest Release

$version_release = 1.0.1
$version_dcendents = 2.1

What's New??

* Update Build Gradle to 7.0.2 *
* Enhance Performance *
* Android Library First *
* Android Library Second *
* Kotlin Library *
* Experimental 3 Library *
* Experimental Java/Kotlin Library *
* Kotlin DSL / KTS *

Download this project

Step 1. Add the JitPack repository to your build file (build.gradle : Project)

Add it in your root build.gradle at the end of repositories:

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Step 2. Add the dependency (build.gradle : Module)

For build.gradle (Groovy)

dependencies {
    implementation 'com.github.amirisback:jitpack-library-kotlin-dsl-guide:1.0.1'
}

For build.gradle.kts (Kotlin DSL)

dependencies {
    implementation("com.github.amirisback:jitpack-library-kotlin-dsl-guide:1.0.1")
}

How To Publish Android Lib Using openJDK 11 and AGP 7.0.0 +

Step 1. Create File jitpack.yml on root project. Add this code inside files

jdk:
  - openjdk11

Step 2. Add classpath dcendents in buildscript (build.gradle : Project)

dependencies {
    ...
    // NOTE : This classpath use for multiple library module
    classpath("com.github.dcendents:android-maven-gradle-plugin:2.1")
}

Step 3. Add maven-publish on plugins (build.gradle : Module)

  • Attention : Choose one of the options below
plugins {
    id("com.android.library")
    kotlin("android")
    id("kotlin-kapt")
    `maven-publish`
}

Step 4. Add publish code library (build.gradle : Module)

// NOTE : Delete afterEvaluate code if you publish Native Java / Kotlin Library
// NOTE : Just Using publishing function
afterEvaluate {
    publishing {
        publications {

            // Creates a Maven publication called "release".
            register("release", MavenPublication::class) {

                // Applies the component for the release build variant.
                // NOTE : Delete this line code if you publish Native Java / Kotlin Library
                from(components["release"])

                // Library Package Name (Example : "com.frogobox.androidfirstlib")
                // NOTE : Different GroupId For Each Library / Module, So That Each Library Is Not Overwritten
                groupId = ProjectSetting.PROJECT_LIB_ID_FIRST

                // Library Name / Module Name (Example : "androidfirstlib")
                // NOTE : Different ArtifactId For Each Library / Module, So That Each Library Is Not Overwritten
                artifactId = ProjectSetting.LIBRARY_FIRST

                // Version Library Name (Example : "1.0.0")
                version = ProjectSetting.PROJECT_VERSION_NAME

            }

        }
    }
}

Colaborator

Very open to anyone, I'll write your name under this, please contribute by sending an email to me

  • Mail To faisalamircs@gmail.com
  • Subject : Github _ [Github-Username-Account] _ [Language] _ [Repository-Name]
  • Example : Github_amirisback_kotlin_admob-helper-implementation

Name Of Contribute

  • Muhammad Faisal Amir
  • Waiting List
  • Waiting List

Waiting for your contribute

Attention !!!

  • Please enjoy and don't forget fork and give a star
  • Don't Forget Follow My Github Account