Skip to content
Snippets Groups Projects
build.gradle 1.86 KiB
Newer Older
  • Learn to ignore specific revisions
  • evaluationDependsOn(':commonbase')
    
    evaluationDependsOn(':common')
    evaluationDependsOn(':openbis_api')
    
    evaluationDependsOn(':openbis-common')
    evaluationDependsOn(':authentication')
    evaluationDependsOn(':dbmigration')
    
    evaluationDependsOn(':openbis')
    
    
    felmer's avatar
    felmer committed
    apply from: '../gradle/javaproject.gradle'
    
    configurations.create('testRuntimeFirst')
    configurations.create('testRuntimeSecond')
    
    
    
    	compile (project(':openbis')) {
    		exclude group: 'google', module: 'gwt-user'
    	}
    
    
    	compile project(':common'),
    			project(':openbis-common'),
    			// authentication and dbmigration are required as they contain later versions of 
    			// some classes than cisd-cifex.jar. They need to be in classpath before cisd-cifex.jar
    			project(':authentication'),
    
    			project(':dbmigration'),
    			'apache:ftpserver-core:+',
    
    			'apache:sshd-core:+',
    			'jfree:jfreechart:+',
    			'cisd:cisd-cifex:+',
    			'shriop:javacsv:+',
    
    			'cisd:cisd-image-readers:r34325',
    
    			'apache:commons-fileupload:+',
    
    			'dspace:xoai-data-provider:+'
    
      runtime 'bioformats:bioformats:5.9.2'
    
    	testCompile (project(path: ':openbis', configuration: 'tests')) {
    		exclude group: 'google', module: 'gwt-user'
    	}
    
    				
    	testCompile project(path: ':common', configuration: 'tests'),
    
    				project(path: ':openbis-common', configuration: 'tests')
    
    
    	testRuntimeFirst 'javax:servlet-api:+'
    	testRuntimeSecond 'google:gwt-user:+'
    
    configurations {
    	testRuntime.exclude group: 'google', module: 'gwt-servlet'
    }
    
    sourceSets.test.runtimeClasspath = configurations.testRuntimeFirst + configurations.testRuntimeSecond + sourceSets.test.runtimeClasspath
    
    
    sourceSets { 
    	test {
    		resources {
    			srcDirs = ['source/java']
    		}
    	}
    }
    
    jar {
        from('targets/dist') {
            include 'BUILD*INFO'
        }
        from('source/java') {
            include '*.xml'
        }
        from('source') {
            include 'sql/**/*.sql'
            into 'datastore_server'
        }
    }