Skip to content

Commit

Permalink
update deps and publish to bintray
Browse files Browse the repository at this point in the history
  • Loading branch information
iTitus committed Nov 9, 2020
1 parent b7a7b2f commit 5a50114
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 15 deletions.
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.idea
out
.gradle
build
.idea/
out/
.gradle/
build/

gradle.properties
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# commons
ititus-commons
ititus-commons

[![Bintray](https://img.shields.io/bintray/v/ititus/ititus-commons/commons)](https://bintray.com/ititus/ititus-commons/commons/_latestVersion)
35 changes: 25 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
plugins {
id 'java'
id 'java-library'
id 'maven-publish'
id 'com.jfrog.bintray' version '1.8.5'
}

group 'io.github.ititus'
version '1.0.0-SNAPSHOT'
group = 'io.github.ititus'
version = '1.0.0'

sourceCompatibility = JavaVersion.VERSION_11
java {
toolchain {
languageVersion = JavaLanguageVersion.of(15)
}

task sourcesJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier = 'sources'
withSourcesJar()
withJavadocJar()
}

repositories {
Expand All @@ -26,14 +29,26 @@ dependencies {

publishing {
publications {
defaultPublication(MavenPublication) {
artifactId = 'ititus-commons'
MyPublication(MavenPublication) {
from components.java
artifact sourcesJar
}
}
}

test {
useJUnitPlatform()
}

bintray {
user = project.property('bintray_user')
key = project.property('bintray_api_key')
publications = ['MyPublication']
publish = true
pkg {
repo = 'ititus-commons'
name = 'commons'
version {
name = project.version
}
}
}

0 comments on commit 5a50114

Please sign in to comment.