Skip to content

Commit a46b5df

Browse files
committed
gradle build, release 2.6.7
1 parent b7715bf commit a46b5df

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

core/build.gradle

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,28 @@ uploadArchives {
6464
artifactId 'jbock'
6565
description 'The jbock annotation processor'
6666
url 'https://github.com/h908714124/jbock'
67+
68+
scm {
69+
connection 'scm:svn:https://github.com/h908714124/jbock.git'
70+
developerConnection 'scm:svn:https://github.com/h908714124/jbock.git'
71+
url 'https://github.com/h908714124/jbock'
72+
}
73+
74+
licenses {
75+
license {
76+
name 'MIT License'
77+
url 'https://opensource.org/licenses/MIT'
78+
}
79+
}
80+
81+
developers {
82+
developer {
83+
id 'h908714124'
84+
name 'h908714124'
85+
86+
}
87+
}
6788
}
6889
}
6990
}
70-
}
91+
}

core/release

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
if [[ -z "$1" ]]; then echo arg: version; exit 1; fi
3-
cp pom.xml pom.backup.xml
4-
sed -i "s/<version>0-SNAPSHOT<\/version>/<version>$1<\/version>/" pom.xml
5-
mvn clean install -Psonatype-oss-release
6-
mv pom.backup.xml pom.xml
3+
cp gradle.properties gradle.properties.back
4+
echo "version=$1" >gradle.properties
5+
gradle uploadArchives
6+
mv gradle.properties.back gradle.properties

0 commit comments

Comments
 (0)