Skip to content

Commit

Permalink
+ Pulish to bintray
Browse files Browse the repository at this point in the history
  • Loading branch information
Grisu118 committed Aug 16, 2017
1 parent 77fb2fa commit 4536ff0
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 16 deletions.
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# KotlinJS Logger

[![Release](https://jitpack.io/v/Grisu118/jslogger.svg?style=flat-square)](https://jitpack.io/#Grisu118/jslogger)
[ ![Release](https://api.bintray.com/packages/grisu118/kotlin/jslogger/images/download.svg) ](https://bintray.com/grisu118/kotlin/jslogger/_latestVersion)

Simple Logger for KotlinJS

Expand Down
66 changes: 50 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,33 +1,67 @@
group 'ch.grisu118.js'
version '0.1'

buildscript {
ext.kotlin_version = '1.1.4'
ext.kotlin_version = '1.1.4'

repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

plugins {
id "com.jfrog.bintray" version "1.7.3"
}

apply plugin: 'kotlin2js'
apply plugin: 'maven'
apply plugin: 'maven-publish'

group 'ch.grisu118.js'
version '0.1.1'

repositories {
mavenCentral()
mavenCentral()
}

dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-js:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-stdlib-js:$kotlin_version"
}

compileKotlin2Js {
kotlinOptions.metaInfo = true
kotlinOptions.outputFile= "${projectDir}/build/classes/main/jslogger.js"
kotlinOptions.sourceMap=true
kotlinOptions.moduleKind='commonjs'
kotlinOptions.metaInfo = true
kotlinOptions.outputFile = "${projectDir}/build/classes/main/jslogger.js"
kotlinOptions.sourceMap = true
kotlinOptions.moduleKind = 'commonjs'
}

jar.dependsOn compileKotlin2Js

bintray {
user = project.property('bintrayUser')
key = project.property('bintrayApiKey')
publications = ['Bintray']
pkg {
repo = 'kotlin'
name = 'jslogger'
licenses = ['MIT']
vcsUrl = 'https://github.com/Grisu118/jslogger.git'
version {
name = project.version
desc = 'First Release'
released = new Date()
vcsTag = project.version
}
}
}

publishing {
publications {
Bintray(MavenPublication) {
from components.java
groupId project.group
artifactId 'jslogger'
version project.version
}
}
}

0 comments on commit 4536ff0

Please sign in to comment.