1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/power-oj

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
build.gradle 1.4 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
power Отправлено 14.08.2015 17:35 91ca1bc
apply plugin: 'java'
apply plugin: 'war'
// Depending upon the fact that one uses default
// WebRoot folder to store web resources. Change
// name to name of WebRoot folder appropriately.
def webRoot = "WebRoot"
def webInfPath = webRoot + "/" + "WEB-INF"
allprojects {
apply plugin: 'java'
sourceCompatibility = 1.7
targetCompatibility = 1.7
}
// Repositories accessed from local directory
repositories {
flatDir {
dirs webInfPath + "/" + "lib"
}
mavenCentral()
}
// Source folder defined as Eclipse stores Java source code
// in non-maven based folder structure
sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDir 'src'
}
}
}
dependencies {
providedCompile 'javax.servlet:servlet-api:2.5'
providedCompile 'javax.websocket:javax.websocket-api:1.0'
// Compile time dependencies read from local directory
compile fileTree(dir: webInfPath + "/" + "lib", include: '*.jar')
runtime 'javax.servlet:jstl:1.1.2'
}
war {
webInf { from webInfPath } // adds a file-set to the WEB-INF dir.
from(webRoot) { fileTree(dir: 'assets/*') } //Copy assets folder to WEB-INF level
// classpath fileTree(webInfPath + "/" + "lib") // adds a file-set to the WEB-INF/lib dir.
// webXml = file(webInfPath + "/" + "web.xml") // copies a file to WEB-INF/web.xml
}

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/power-oj.git
git@api.gitlife.ru:oschina-mirror/power-oj.git
oschina-mirror
power-oj
power-oj
master