mirror of
				https://github.com/GayPizzaSpecifications/foundation.git
				synced 2025-11-04 03:39:37 +00:00 
			
		
		
		
	Possible working CI.
This commit is contained in:
		
							
								
								
									
										17
									
								
								.gitlab-ci.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								.gitlab-ci.yml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,17 @@
 | 
			
		||||
image: gradle:7.3-jdk11
 | 
			
		||||
 | 
			
		||||
variables:
 | 
			
		||||
  GRADLE_OPTS: "-Dorg.gradle.daemon=false"
 | 
			
		||||
 | 
			
		||||
build:
 | 
			
		||||
  stage: build
 | 
			
		||||
  script: gradle --build-cache shadowJar
 | 
			
		||||
  cache:
 | 
			
		||||
    key: "$CI_COMMIT_REF_NAME"
 | 
			
		||||
    policy: push
 | 
			
		||||
    paths:
 | 
			
		||||
      - build
 | 
			
		||||
      - .gradle
 | 
			
		||||
  artifacts:
 | 
			
		||||
    paths:
 | 
			
		||||
      - **/build/libs/*.jar
 | 
			
		||||
@ -40,6 +40,8 @@ subprojects {
 | 
			
		||||
    targetCompatibility = javaVersion
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  tasks["jar"].enabled = false
 | 
			
		||||
 | 
			
		||||
  tasks.processResources {
 | 
			
		||||
    val props = mapOf("version" to version)
 | 
			
		||||
    inputs.properties(props)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user