77 lines
2.0 KiB
Groovy
77 lines
2.0 KiB
Groovy
apply plugin: 'java-library'
|
|
apply plugin: 'com.jfrog.bintray'
|
|
apply plugin: 'maven-publish'
|
|
|
|
dependencies {
|
|
compileOnly 'org.projectlombok:lombok:1.18.12'
|
|
annotationProcessor 'org.projectlombok:lombok:1.18.12'
|
|
}
|
|
|
|
ext {
|
|
libraryVersion = System.getProperty("libraryVersion")
|
|
}
|
|
|
|
version = libraryVersion
|
|
group = 'com.theokanning.openai-gpt3-java'
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
classifier = 'sources'
|
|
from sourceSets.main.allSource
|
|
}
|
|
|
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
|
classifier = 'javadoc'
|
|
from javadoc.destinationDir
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
ApiPublication(MavenPublication) {
|
|
from components.java
|
|
artifact sourcesJar
|
|
artifact javadocJar
|
|
groupId project.group
|
|
artifactId 'api'
|
|
version libraryVersion
|
|
pom {
|
|
description = 'POJOs for the OpenAI GPT-3 API'
|
|
name = 'api'
|
|
url = 'https://github.com/theokanning/openai-java'
|
|
developers {
|
|
developer {
|
|
id = "theokanning"
|
|
name = "Theo Kanning"
|
|
email = "theokanning@gmail.com"
|
|
}
|
|
}
|
|
scm {
|
|
url = "https://github.com/theokanning/openai-java"
|
|
}
|
|
licenses {
|
|
license {
|
|
name = "The MIT License"
|
|
url = "https://www.mit.edu/~amini/LICENSE.md"
|
|
distribution = "repo"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
bintray {
|
|
user = System.getenv("BINTRAY_USER")
|
|
key = System.getenv("BINTRAY_KEY")
|
|
|
|
publications = ['ApiPublication']
|
|
pkg {
|
|
repo = 'openai-gpt3-java'
|
|
name = 'api'
|
|
vcsUrl = 'https://github.com/TheoKanning/openai-java.git'
|
|
licenses = ["MIT"]
|
|
publish = false
|
|
version {
|
|
name = libraryVersion
|
|
}
|
|
}
|
|
} |