Enable publishing the jar archive to bintray

parent b6492e73
def VERSION = '0.0.1'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.+'
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'checkstyle'
apply plugin: 'jacoco'
......@@ -6,6 +19,11 @@ apply plugin: 'jacoco'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'com.jfrog.bintray'
group = 'gone.corewars.library'
version = VERSION
repositories {
jcenter()
mavenCentral()
......@@ -24,3 +42,35 @@ jacocoTestReport {
description = "Generate Jacoco coverage reports after running tests."
additionalSourceDirs = files(sourceSets.main.java.srcDirs)
}
publishing {
publications {
JarPublication(MavenPublication) {
from components.java
groupId 'gone.corewars.library'
artifactId 'corewars-lib'
version VERSION
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['JarPublication']
pkg {
repo = 'corewars-library'
name = 'corewars-lib'
userOrg = 'st-praktikum16-g1'
licenses = ['Apache-2.0']
websiteUrl = 'https://gitlab.com/st-praktikum16-g1/corewars-lib'
vcsUrl = 'https://gitlab.com/st-praktikum16-g1/corewars-lib.git'
issueTrackerUrl = 'https://gitlab.com/st-praktikum16-g1/corewars-lib/issues'
version {
name = VERSION
vcsTag = VERSION
released = new Date()
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment