• R/O
  • SSH

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision6edcd3f9a5093a8e406d3126720ebb32423fd2ed (tree)
l'heure2015-10-21 12:09:19
AuteurMirrgieRiana
CommiterMirrgieRiana

Message de Log

update: build.gradle, .hgignore; add: artifact: src, javadoc

Change Summary

Modification

diff -r af2c4cc969b7 -r 6edcd3f9a509 .hgignore
--- a/.hgignore Sat Aug 15 22:37:03 2015 +0900
+++ b/.hgignore Wed Oct 21 12:09:19 2015 +0900
@@ -3,3 +3,6 @@
33 projects/*/build/
44 projects/*/.settings/
55 projects/*/.gradle/
6+backup/
7+*.lnk
8+projects/*/.classpath
diff -r af2c4cc969b7 -r 6edcd3f9a509 projects/mirrg.struct.hydrogen/.classpath
--- a/projects/mirrg.struct.hydrogen/.classpath Sat Aug 15 22:37:03 2015 +0900
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
1-<?xml version="1.0" encoding="UTF-8"?>
2-<classpath>
3- <classpathentry kind="src" path="src/main/java"/>
4- <classpathentry kind="src" path="src/main/resources"/>
5- <classpathentry kind="src" path="src/test/java"/>
6- <classpathentry kind="src" path="src/test/resources"/>
7- <classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
8- <classpathentry exported="true" kind="con" path="org.springsource.ide.eclipse.gradle.classpathcontainer"/>
9- <classpathentry kind="output" path="bin"/>
10-</classpath>
diff -r af2c4cc969b7 -r 6edcd3f9a509 projects/mirrg.struct.hydrogen/build.gradle
--- a/projects/mirrg.struct.hydrogen/build.gradle Sat Aug 15 22:37:03 2015 +0900
+++ b/projects/mirrg.struct.hydrogen/build.gradle Wed Oct 21 12:09:19 2015 +0900
@@ -24,15 +24,42 @@
2424
2525 jar {
2626 manifest {
27+ //attributes 'Main-Class' : 'Main'
2728 attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version
2829 }
2930 }
3031
32+task sourcesJar(type: Jar, dependsOn:classes) {
33+ classifier = 'sources'
34+ from sourceSets.main.allSource
35+}
36+
37+task javadocJar(type: Jar, dependsOn:javadoc) {
38+ classifier = 'javadoc'
39+ from javadoc.destinationDir
40+}
41+
42+javadoc {
43+ options.charSet = 'UTF-8'
44+ options.encoding = 'UTF-8'
45+}
46+
47+artifacts {
48+ archives sourcesJar
49+ archives javadocJar
50+}
51+
3152 repositories {
3253 mavenCentral()
54+ maven {
55+ url '../../maven'
56+ }
57+
58+ // ★mirrgリポジトリのデフォルトURL
3359 //maven {
3460 // url 'http://hg.pf.osdn.jp/view/t/ta/tacticsrealize/mirrg.struct.hydrogen/raw-file/tip/maven'
3561 //}
62+
3663 }
3764
3865 test {
@@ -41,9 +68,22 @@
4168
4269 uploadArchives {
4370 repositories {
71+
72+ // ★まとまったJarとしてフォルダ出力する場合
73+ //flatDir {
74+ // dirs 'repos'
75+ //}
76+
77+ // ★mavenプロジェクトとして出力する場合
4478 mavenDeployer {
4579 pom.artifactId = project.archivesBaseName.replace('.', '-')
4680 repository(url: 'file://localhost/' + file('../../maven').getAbsolutePath())
4781 }
82+
4883 }
4984 }
85+
86+// ★まとまったJarとしてフォルダ出力する場合
87+//jar {
88+// from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
89+//}