Skip to content
This repository has been archived by the owner on Jul 10, 2020. It is now read-only.

Commit

Permalink
chore(vaadin): create vaadin directory accepted resource zip
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Oberwasserlechner committed Dec 20, 2017
1 parent fd3e4ab commit ac55501
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
30 changes: 27 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,47 @@ jar {
createAddonPom
baseName = project.artifactId
// Include sources
sourceSets.main.java.srcDirs.each {
from it
}
// sourceSets.main.java.srcDirs.each {
// from it
// }

manifest {
// the manifest of the default jar is of type OsgiManifest
name = project.artifactId
attributes "Vaadin-Package-Version": "1"
attributes "Implementation-Title": "Chart.js Add-on"
attributes "Implementation-Version": project.version
attributes "Implementation-Vendor": 'Michael Oberwasserlechner'
instruction 'Import-Package', '!com.google.gwt.*', '!com.vaadin.client.*', '*'
instruction 'Bundle-Vendor', 'Michael Oberwasserlechner'
instruction 'Bundle-Description', 'Chart.js Add-on'
instruction 'Bundle-DocURL', 'https://github.com/moberwasserlechner/vaadin-chartjs'
}
}


task vaadinDirectory(type: Zip) {

dependsOn 'jar'
dependsOn 'sourcesJar'
dependsOn 'javadocJar'
// create manifest
mkdir 'build/libs/META-INF'
new File("build/libs/META-INF/MANIFEST.MF").text =
"""Manifest-Version: 1.0
Vaadin-Package-Version: 1
Vaadin-Addon: """+project.artifactId+"""-"""+project.version+""".jar
Vaadin-License-Title: MIT
Implementation-Vendor: Michael Oberwasserlechner
Implementation-Title: Chart.js Add-on
Implementation-Version: """+project.version+"""
"""
from 'build/libs'
include '*.jar'
include '*/*'
destinationDir(file('build/libs/'))
}

// custom tasks for creating source/javadoc jars
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group=com.byteowls
artifactId=vaadin-chartjs
version=1.1.0
version=1.1.1

vaadinVersion=8.0.6

0 comments on commit ac55501

Please sign in to comment.