Skip to content

Commit

Permalink
Add license to jars and pom (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
king-tyler committed Jun 28, 2020
1 parent 91abf81 commit fabe694
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {

group = 'com.github.zxhr'
version = '0.0.1-SNAPSHOT'
description = 'Plugins for seamlessly using the Xtext DSL language generator with Gradle'

ext {
xtextVersion = '2.22.0'
Expand Down Expand Up @@ -92,12 +93,25 @@ gradlePlugin {
}

pluginBundle {
website = 'https://github.com/zxhr/gradle-xtext-generator/'
website = 'https://github.com/zxhr/gradle-xtext-generator'
vcsUrl = website
tags = ['xtext', 'mwe2']
}

publishing {
publications.withType(MavenPublication) {
pom {
description = project.description
url = pluginBundle.website
licenses {
license {
name = 'MIT License'
url = "${pluginBundle.website}/blob/master/LICENSE.md"
distribution = 'repo'
}
}
}
}
repositories {
maven {
name = 'test'
Expand Down Expand Up @@ -149,6 +163,12 @@ tasks.named(JavaPlugin.JAVADOC_TASK_NAME) {
}
}

tasks.withType(Jar).configureEach {
metaInf {
from 'LICENSE.md'
}
}

dependencyLocking {
lockAllConfigurations()
}

0 comments on commit fabe694

Please sign in to comment.