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 101 - (hide annotations) (download)
Tue Oct 8 11:24:01 2019 UTC (4 years, 6 months ago) by hirukawa_ryo
File size: 2064 byte(s)
* flexmark-ext-highlight 0.2.4
flexmark 0.50.40 に変更して「クリップボードへコピー」ボタンが表示されなくなってしまったバグを修正しました。
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    
8     group = 'net.osdn.blogs.flexmark.ext'
9     archivesBaseName = 'flexmark-ext-highlight'
10 hirukawa_ryo 101 version = '0.2.4'
11 hirukawa_ryo 72
12     tasks.withType(JavaCompile) {
13     sourceCompatibility = 1.7
14     targetCompatibility = 1.7
15     }
16    
17     def defaultEncoding = 'UTF-8'
18     tasks.withType(AbstractCompile).each { it.options.encoding = defaultEncoding }
19     tasks.withType(GroovyCompile).each { it.groovyOptions.encoding = defaultEncoding }
20    
21     javadoc {
22     options.charSet = defaultEncoding
23     options.encoding = defaultEncoding
24     options.memberLevel = JavadocMemberLevel.PUBLIC
25     options.stylesheetFile = new File(rootDir, 'javadoc.css')
26     }
27    
28     repositories {
29     jcenter()
30     }
31    
32     dependencies {
33 hirukawa_ryo 92 compile fileTree(dir: 'lib',
34     includes: ['**/*.jar'],
35     excludes: ['**/*-sources.jar', '**/*-javadoc.jar'])
36    
37 hirukawa_ryo 99 compile 'com.vladsch.flexmark:flexmark:0.50.40'
38 hirukawa_ryo 92 // compile 'com.codewaves.codehighlight:codehighlight:1.0.2'
39 hirukawa_ryo 72 }
40    
41     defaultTasks 'clean', 'build'
42    
43     task sourcesJar(type: Jar, dependsOn: classes) {
44     setGroup('build')
45     setDescription('Assembles a jar archive containing the main source code.')
46 hirukawa_ryo 101 archiveClassifier = 'sources'
47 hirukawa_ryo 72 from sourceSets.main.allSource
48     }
49    
50     task javadocJar(type: Jar, dependsOn: javadoc) {
51     setGroup('documentation')
52     setDescription('Generates Javadoc API documentation as a jar archive.')
53 hirukawa_ryo 101 archiveClassifier = 'javadoc'
54 hirukawa_ryo 72 from javadoc.destinationDir
55     }
56    
57     // For Bintray maven repository
58     // Use publishing -> bintrayUpload task.
59    
60     artifacts {
61     archives sourcesJar
62     archives javadocJar
63     }
64    
65     publishing {
66     publications {
67     mavenJava(MavenPublication) {
68     from components.java
69     artifact sourcesJar
70     artifact javadocJar
71     }
72     }
73     }
74     bintray {
75     user = System.getenv('BINTRAY_USER')
76     key = System.getenv('BINTRAY_KEY')
77    
78     publications = ['mavenJava']
79    
80     pkg {
81     repo = 'maven'
82     name = 'flexmark-ext-highlight'
83     licenses = ['BSD 2-Clause']
84     vcsUrl = 'https://svn.osdn.net/svnroot/blogs/flexmark-ext-highlight'
85     }
86     }

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