我正在开发一个使用旧gradle版本(1.12)的java项目。现在我将gradle升级到更新版本(4.4)以便能够使用Kotlin。我一直在解决依赖项问题,除了一个名为transitive的属性外,一切似乎都没问题,似乎在版本1.12上有效。
这是给我带来麻烦的代码:
dependencies {
compile project(':core') {
transitive = false //Here
}
// bunch of dependencies below
}
如何在较新版本的Gradle中获得相同结果的任何想法?
答案 0 :(得分:5)
试试这个..
Private Sub Worksheet_Change(ByVal Target As Range)
Const sRng As String = "A5:AQ155" ' change as required
Dim sOld As String
Dim sNew As String
Dim sCmt As String
Dim iLen As Long
If Not Intersect(Target, Me.Range(sRng)) Is Nothing Then
With Target
Application.EnableEvents = False
sNew = .Value2
Application.Undo
sOld = .Value2
.Value2 = sNew
Application.EnableEvents = True
sCmt = "Edit: " & Format$(Now, "dd Mmm YYYY hh:nn:ss") & " by " & Application.UserName & Chr(10) & "Previous Text :- " & sOld
If .Comment Is Nothing Then
.AddComment
Else
iLen = Len(.Comment.Shape.TextFrame.Characters.Text)
End If
With .Comment.Shape.TextFrame
.AutoSize = True
.Characters(Start:=iLen + 1).Insert IIf(iLen, vbLf, "") & sCmt
End With
End With
End If
End Sub
希望它有所帮助。