gradle 下如何用svn(不通过ant 之类的)

near_sun 2013-05-28
gradle 下如何用svn(不通过ant 之类的)
cwocwo 2013-10-30
使用svnkit:
buildscript {
	repositories {
		maven {
			url repositoriesUrl
		}
	}
	configurations.all {
		resolutionStrategy {
			cacheChangingModulesFor 0, 'seconds'
			//cacheDynamicVersionsFor 0, 'seconds'
		}
	}
	dependencies {
		classpath group: 'org.tmatesoft.svnkit', name: 'svnkit-javahl', version: '1.3.5'
		
	}
}


------------------------------------------
SVNClient svnClient = SVNClient.newInstance();
svnClient.doExport(url, dest, Revision.HEAD, true)
Global site tag (gtag.js) - Google Analytics