Skip to content

Commit

Permalink
Add Maven plugin, include sources
Browse files Browse the repository at this point in the history
  • Loading branch information
yanex committed Jul 22, 2016
1 parent d0dac95 commit e866c8c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
24 changes: 24 additions & 0 deletions bot-api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'maven'

sourceCompatibility = 1.6

Expand All @@ -9,3 +10,26 @@ dependencies {
compile "com.google.code.gson:gson:2.7"
testCompile "junit:junit:4.12"
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

artifacts {
archives sourcesJar
}

install {
repositories.mavenInstaller {
pom.project {
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
}
}
}
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
group 'org.yanex.telegram'
version '1.0-SNAPSHOT'

buildscript {
repositories {
mavenCentral()
Expand All @@ -11,6 +8,9 @@ buildscript {
}

allprojects {
group 'org.yanex.telegram'
version '1.0-SNAPSHOT'

repositories {
mavenCentral()
}
Expand Down

0 comments on commit e866c8c

Please sign in to comment.