티스토리 뷰

개요

auth 모듈에 common 모듈 코드를 읽어올 수 있도록 해야함.

 

내용

아래와 같이 추가하였으나 에러가 났음.

rootProject.name = 'mlmall'
include 'app-auth'
include 'app-common'
project(':app-auth') {
	dependencies {
		compile project(':app-common')
	}
}

project(':app-common') {
	dependencies {
	}
}

 

에러코드

A problem occurred evaluating root project 'mlmall'.
> Could not find method compile() for arguments [project ':app-common'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

 

해결

1. complie을 implementation으로 변경했지만 common의 class를 읽어오지 못함.

 

2. common 모듈에 있는 class가 jar 파일로 변환이 안된듯 하여 변환 진행

 

 

회고

gradle 버전에 따라 조금씩 명령어가 바뀌는거 생각보다 귀찮다...

jar 파일까진 크게 생각해본적 없는데 이번 프로젝트 하면서 기초적인 부분까지 다 다루는 느낌이 든다.

 

참고 블로그

https://techblog.woowahan.com/2637/

 

멀티모듈 설계 이야기 with Spring, Gradle | 우아한형제들 기술블로그

{{item.name}} 멀티 모듈 설계 이야기 안녕하세요. 배달의민족 프론트 서버를 개발하고 있는 권용근입니다. 멀티 모듈의 개념을 처음알게 되었을 때부터 현재까지 겪었던 문제점들과 그것을 어떻게

techblog.woowahan.com

https://devdavelee.tistory.com/29

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함