Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /flexmark-ext-highlight/trunk/build.gradle

Parent Directory Parent Directory | Revision Log Revision Log


Revision 77 - (hide annotations) (download)
Wed Dec 19 10:48:34 2018 UTC (5 years, 3 months ago) by hirukawa_ryo
File size: 2041 byte(s)


1 hirukawa_ryo 72 plugins {
2     id "com.jfrog.bintray" version "1.7.3"
3     }
4     apply plugin : 'maven-publish'
5    
6     apply plugin: 'java'
7     apply plugin: 'eclipse'
8    
9     group = 'net.osdn.blogs.flexmark.ext'
10     archivesBaseName = 'flexmark-ext-highlight'
11 hirukawa_ryo 77 version = '0.1.1'
12 hirukawa_ryo 72
13     tasks.withType(JavaCompile) {
14     sourceCompatibility = 1.7
15     targetCompatibility = 1.7
16     compileJava.options.bootClasspath = "$System.env.JAVA_HOME/jre/lib/rt.jar"
17     }
18    
19     def defaultEncoding = 'UTF-8'
20     tasks.withType(AbstractCompile).each { it.options.encoding = defaultEncoding }
21     tasks.withType(GroovyCompile).each { it.groovyOptions.encoding = defaultEncoding }
22    
23     javadoc {
24     options.charSet = defaultEncoding
25     options.encoding = defaultEncoding
26     options.memberLevel = JavadocMemberLevel.PUBLIC
27     options.stylesheetFile = new File(rootDir, 'javadoc.css')
28     }
29    
30     repositories {
31     jcenter()
32     }
33    
34     dependencies {
35     compile 'com.vladsch.flexmark:flexmark-all:0.35.0'
36     compile 'com.codewaves.codehighlight:codehighlight:1.0.2'
37     }
38    
39     defaultTasks 'clean', 'build'
40    
41     task sourcesJar(type: Jar, dependsOn: classes) {
42     setGroup('build')
43     setDescription('Assembles a jar archive containing the main source code.')
44     classifier = 'sources'
45     from sourceSets.main.allSource
46     }
47    
48     task javadocJar(type: Jar, dependsOn: javadoc) {
49     setGroup('documentation')
50     setDescription('Generates Javadoc API documentation as a jar archive.')
51     classifier = 'javadoc'
52     from javadoc.destinationDir
53     }
54    
55     // For Bintray maven repository
56     // Use publishing -> bintrayUpload task.
57    
58     artifacts {
59     archives sourcesJar
60     archives javadocJar
61     }
62    
63     publishing {
64     publications {
65     mavenJava(MavenPublication) {
66     from components.java
67     artifact sourcesJar
68     artifact javadocJar
69     }
70     }
71     }
72     bintray {
73     user = System.getenv('BINTRAY_USER')
74     key = System.getenv('BINTRAY_KEY')
75    
76     publications = ['mavenJava']
77    
78     pkg {
79     repo = 'maven'
80     name = 'flexmark-ext-highlight'
81     licenses = ['BSD 2-Clause']
82     vcsUrl = 'https://svn.osdn.net/svnroot/blogs/flexmark-ext-highlight'
83     }
84     }

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26