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 94 - (hide annotations) (download)
Wed Mar 20 10:35:39 2019 UTC (5 years ago) by hirukawa_ryo
File size: 2081 byte(s)
* flexmark-ext-highlight 0.1.6 依存ライブラリflexmarkのバージョンを0.40.16→0.40.24に変更しました。
1 hirukawa_ryo 72 plugins {
2 hirukawa_ryo 82 id "com.jfrog.bintray" version "1.8.1"
3 hirukawa_ryo 72 }
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 94 version = '0.1.6'
12 hirukawa_ryo 72
13     tasks.withType(JavaCompile) {
14     sourceCompatibility = 1.7
15     targetCompatibility = 1.7
16     }
17    
18     def defaultEncoding = 'UTF-8'
19     tasks.withType(AbstractCompile).each { it.options.encoding = defaultEncoding }
20     tasks.withType(GroovyCompile).each { it.groovyOptions.encoding = defaultEncoding }
21    
22     javadoc {
23     options.charSet = defaultEncoding
24     options.encoding = defaultEncoding
25     options.memberLevel = JavadocMemberLevel.PUBLIC
26     options.stylesheetFile = new File(rootDir, 'javadoc.css')
27     }
28    
29     repositories {
30     jcenter()
31     }
32    
33     dependencies {
34 hirukawa_ryo 92 compile fileTree(dir: 'lib',
35     includes: ['**/*.jar'],
36     excludes: ['**/*-sources.jar', '**/*-javadoc.jar'])
37    
38 hirukawa_ryo 94 compile 'com.vladsch.flexmark:flexmark:0.40.24'
39 hirukawa_ryo 92 // compile 'com.codewaves.codehighlight:codehighlight:1.0.2'
40 hirukawa_ryo 72 }
41    
42     defaultTasks 'clean', 'build'
43    
44     task sourcesJar(type: Jar, dependsOn: classes) {
45     setGroup('build')
46     setDescription('Assembles a jar archive containing the main source code.')
47     classifier = 'sources'
48     from sourceSets.main.allSource
49     }
50    
51     task javadocJar(type: Jar, dependsOn: javadoc) {
52     setGroup('documentation')
53     setDescription('Generates Javadoc API documentation as a jar archive.')
54     classifier = 'javadoc'
55     from javadoc.destinationDir
56     }
57    
58     // For Bintray maven repository
59     // Use publishing -> bintrayUpload task.
60    
61     artifacts {
62     archives sourcesJar
63     archives javadocJar
64     }
65    
66     publishing {
67     publications {
68     mavenJava(MavenPublication) {
69     from components.java
70     artifact sourcesJar
71     artifact javadocJar
72     }
73     }
74     }
75     bintray {
76     user = System.getenv('BINTRAY_USER')
77     key = System.getenv('BINTRAY_KEY')
78    
79     publications = ['mavenJava']
80    
81     pkg {
82     repo = 'maven'
83     name = 'flexmark-ext-highlight'
84     licenses = ['BSD 2-Clause']
85     vcsUrl = 'https://svn.osdn.net/svnroot/blogs/flexmark-ext-highlight'
86     }
87     }

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