mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-24 23:47:11 -07:00
First commit
This commit is contained in:
commit
c061e7df85
102 changed files with 6717 additions and 0 deletions
1
gradle/buildWithTravis.sh
Normal file
1
gradle/buildWithTravis.sh
Normal file
|
@ -0,0 +1 @@
|
|||
../gradlew check
|
58
gradle/publishing.gradle
Normal file
58
gradle/publishing.gradle
Normal file
|
@ -0,0 +1,58 @@
|
|||
import java.text.SimpleDateFormat
|
||||
|
||||
Date buildTimeAndDate = new Date()
|
||||
ext {
|
||||
buildTime = new SimpleDateFormat('yyyy-MM-dd').format(buildTimeAndDate)
|
||||
buildDate = new SimpleDateFormat('HH:mm:ss.SSSZ').format(buildTimeAndDate)
|
||||
}
|
||||
|
||||
apply plugin: 'maven-publish'
|
||||
apply plugin: 'com.jfrog.bintray'
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes(
|
||||
'Built-By': System.properties['user.name'],
|
||||
'Created-By': System.properties['java.version'] + " (" + System.properties['java.vendor'] + " " + System.getProperty("java.vm.version") + ")",
|
||||
'Build-Date': project.buildTime,
|
||||
'Build-Time': project.buildDate,
|
||||
'Specification-Title': project.name,
|
||||
'Specification-Version': project.version,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
mavenCustom(MavenPublication) {
|
||||
from components.java
|
||||
artifact sourceJar
|
||||
|
||||
groupId 'com.beust'
|
||||
artifactId 'kobalt'
|
||||
version project.version
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task install(dependsOn: publishToMavenLocal)
|
||||
|
||||
Properties properties = new Properties()
|
||||
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
||||
|
||||
bintray {
|
||||
user = properties.getProperty("bintray.user")
|
||||
key = properties.getProperty("bintray.apikey")
|
||||
publications = ['mavenCustom']
|
||||
pkg {
|
||||
repo = 'maven'
|
||||
name = 'klaxon'
|
||||
desc = 'JSON parsing for Kotlin'
|
||||
licenses = ['Apache-2.0']
|
||||
labels = ['kotlin']
|
||||
|
||||
version {
|
||||
name = project.version //Bintray logical version name
|
||||
}
|
||||
}
|
||||
}
|
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
Binary file not shown.
6
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
6
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
#Sun Oct 04 21:38:45 EDT 2015
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-all.zip
|
Loading…
Add table
Add a link
Reference in a new issue