Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.atrujillofalcon:liferay-kotlin-maven-support:1.0.0-beta'
}
dependencies {
implementation("com.github.atrujillofalcon:liferay-kotlin-maven-support:1.0.0-beta")
}
<dependency>
<groupId>com.github.atrujillofalcon</groupId>
<artifactId>liferay-kotlin-maven-support</artifactId>
<version>1.0.0-beta</version>
</dependency>
libraryDependencies += "com.github.atrujillofalcon" % "liferay-kotlin-maven-support" % "1.0.0-beta"
:dependencies [[com.github.atrujillofalcon/liferay-kotlin-maven-support "1.0.0-beta"]]
Parent repository to support maven archetype generation of Liferay plugins with Kotlin.
Kotlin is a new statically-typed programming language developed by Jetbrain that runs on <b>Java Virtual Machine</b>. The main benefits are:
-Null-safe language.<br> -Any 3rd library type extension.<br> -Concise and simple to write.
You can view more details in https://kotlinlang.org/ .
You have two options to use the archetypes of this repo:
1- For use any of archetypes included here you have to clone the repository in your machine and execute from the repository root folder:
<b>mvn clean install</b>
2- You can install each archetype separately downloading the jar with these commands:
<b>wget https://github.com/atrujillofalcon/liferay-kotlin-maven-support/releases/download/1.0.0-beta/liferay-kotlin-portlet-archetype-1.0.0-beta.jar</b>
and after execute:
<b>mvn install:install-file -Dfile=liferay-kotlin-portlet-archetype-1.0.0-beta.jar -DgroupId=atrujillo.liferay.archetypes -DartifactId=liferay-kotlin-portlet-archetype -Dversion=1.0.0-beta -Dpackaging=maven-archetype</b>
This is required one time only, after this you can list and use the local archeypes executing:
<b>mvn archetype:generate -DarchetypeCatalog=local</b>