Install AndServer in a Gradle project
masterTo use AndServer, you must first add the AndServer plugin to your buildscript and then apply the plugin and dependencies to your module.
If you are using Kotlin, use kapt instead of annotationProcessor for the processor dependency.
// 1. Add plugin to buildscript
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.yanzhenjie.andserver:plugin:2.1.12'
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
// 2. Apply plugin and add dependencies to your module
apply plugin: 'com.yanzhenjie.andserver'
dependencies {
implementation 'com.yanzhenjie.andserver:api:2.1.12'
annotationProcessor 'com.yanzhenjie.andserver:processor:2.1.12'
}