'compile'에 해당되는 글 3건

  1. 2021.09.15 [Gradle] 6.x 에서 7.x 로 넘어 오면서 runtime, compile.
  2. 2013.05.03 [Maven] pom.xml <scope> 설명.
  3. 2013.01.31 default gcc, g++ compile command

[Gradle] 6.x 에서 7.x 로 넘어 오면서 runtime, compile.

ITWeb/개발일반 2021. 9. 15. 17:51

아래와 같이 변경 해서 사용 하면 됩니다.

- Gradle 6.x 에서 Gradle 7.x 로 넘어 오면서 runtime, compile.
[6.x]
task copyDependencies(type: Copy) {
  into "$buildDir/libs/deps"
  from configurations.runtime
}

[7.x]
task copyDependencies(type: Copy) {
  into "$buildDir/libs/deps"
  from configurations.runtimeClasspath
}

[6.x]
jar {
  manifest {
    attributes 'Main-Class': 'Main.class',
        'Class-Path': configurations.compile.files.collect { "deps/$it.name" }.join(' ')
  }

  archiveName 'dictionary.jar'
  from {
    configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) }
  }
}

[7.x]
jar {
  manifest {
    attributes 'Main-Class': 'Main.class',
        'Class-Path': configurations.compileClasspath.files.collect { "deps/$it.name" }.join(' ')
  }

  archiveName 'dictionary.jar'
}

 

:

[Maven] pom.xml <scope> 설명.

ITWeb/개발일반 2013. 5. 3. 17:44

참고 글 : http://laydios.egloos.com/2789441


pom.xml 설정시 dependency 설정에서 scorp 종류와 설명. 


compile : 컴파일 할때 필요. 테스트 및 런타임에도 클래스 패스에 포함 된다. scorp 을 설정 하지 않는 경우 기본값이다. 

runtime : 런타임에 필요. JDBC 드라이버 등이 예가 된다. 컴파일 시에는 필요하지 않지만, 실행 시에 필요한 경우. 

provided : 컴파일 시에 필요하지만, 실제 런타임 때에는 컨테이너 같은 것에서 제공되는 모듈. servlet, jsp api 등이 이에 해당. 배포시 제외된다. 

test : 테스트 코드를 컴파일 할때 필요. 테스트시 클래스 패스에 포함되며, 배포시 제외된다. 


:

default gcc, g++ compile command

ITWeb/개발일반 2013. 1. 31. 14:26

영어는 못하지만 그냥 내 블로그에 글 작성을 이제 부터 영어로 해보려 합니다.
못하니까 이러지 잘하면 이러겠어요.. ㅋㅋ

Recently I'm develop c, c++ program.
So, write default compile command.

[*.c]
gcc FILENAME.c -I/path/to/include -L/path/to/lib -lLINK_NAME -o output

[*.cpp]
g++ FILENAME.cpp -I/path/to/include -L/path/to/lib -lLINK_NAME -o output


You can reference the below URL.
http://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html

: